aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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)