aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <>2022-05-02 16:03:32 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit62edcb3745f414212ee102c13429056f02cf31bd (patch)
tree2001bfbfb562d99866ea46faec7f838ec1dc2864 /main.go
parent1ee6552559141dd5dba91abec7c81d68c56abda0 (diff)
admin login working
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.go b/main.go
index c83ba10..ec1e61f 100644
--- a/main.go
+++ b/main.go
@@ -56,9 +56,9 @@ func main() {
app.Get("/followers", routes.Followers)
// Admin routes
- app.Get("/verify", routes.AdminVerify)
- app.Get("/auth", routes.AdminAuth)
- app.Get("/"+config.Key+"/", routes.AdminIndex)
+ app.Post("/verify", routes.AdminVerify)
+ app.Post("/auth", routes.AdminAuth)
+ app.All("/"+config.Key+"/", routes.AdminIndex)
app.Get("/"+config.Key+"/addboard", routes.AdminAddBoard)
app.Get("/"+config.Key+"/postnews", routes.AdminPostNews)
app.Get("/"+config.Key+"/newsdelete", routes.AdminNewsDelete)