aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <>2022-05-02 17:43:39 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit328c9150228156c04d1045469c7dbcd7b5f4fedf (patch)
treeae4e281b4e0b6df3c54919756d55bfeff90f0ef0 /main.go
parent62edcb3745f414212ee102c13429056f02cf31bd (diff)
admin auth and manage page working for initial pass through
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 7 insertions, 4 deletions
diff --git a/main.go b/main.go
index ec1e61f..5410cf1 100644
--- a/main.go
+++ b/main.go
@@ -59,9 +59,12 @@ func main() {
app.Post("/verify", routes.AdminVerify)
app.Post("/auth", routes.AdminAuth)
app.All("/"+config.Key+"/", routes.AdminIndex)
+ app.Post("/"+config.Key+"/follow", routes.AdminFollow)
app.Get("/"+config.Key+"/addboard", routes.AdminAddBoard)
app.Get("/"+config.Key+"/postnews", routes.AdminPostNews)
app.Get("/"+config.Key+"/newsdelete", routes.AdminNewsDelete)
+ app.Post("/"+config.Key+"/:actor/follow", routes.AdminActorIndex)
+ app.Get("/"+config.Key+"/:actor", routes.AdminActorIndex)
app.Get("/news", routes.NewsGet)
// Board managment
@@ -80,16 +83,16 @@ func main() {
app.Get("/api/media", routes.Media)
// Board actor
- app.Get("/:actor", routes.OutboxGet)
- app.Post("/:actor", routes.ActorPost)
app.Get("/:actor/catalog", routes.CatalogGet)
- app.Get("/:actor/:post", routes.PostGet)
app.Post("/:actor/inbox", routes.ActorInbox)
app.Post("/:actor/outbox", routes.ActorOutbox)
app.Get("/:actor/following", routes.ActorFollowing)
- app.Get("/:actor/followers", routes.ActorFollowers)
+ app.All("/:actor/followers", routes.ActorFollowers)
app.Get("/:actor/reported", routes.ActorReported)
app.Get("/:actor/archive", routes.ActorArchive)
+ app.Get("/:actor", routes.OutboxGet)
+ app.Post("/:actor", routes.ActorPost)
+ app.Get("/:actor/:post", routes.PostGet)
//404 handler
app.Use(routes.NotFound)