aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <>2022-06-16 12:39:41 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commitaebf10de3b631f452600a5b31c1f43c1bbf8bdf2 (patch)
tree6d8855a96a0c3188df015e1b8c54e1db3db00a75 /main.go
parent44a5de2ecef3cba0d4d596f86183e7fd383615c0 (diff)
fixed query to actor/outbox
Diffstat (limited to 'main.go')
-rw-r--r--main.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/main.go b/main.go
index 3efb9ff..d362244 100644
--- a/main.go
+++ b/main.go
@@ -93,15 +93,16 @@ func main() {
app.Get("/api/media", routes.Media)
// Board actor routes
- app.Post("/post", routes.ActorPost)
+ app.Post("/post", routes.MakeActorPost)
app.Get("/:actor/catalog", routes.ActorCatalog)
app.Post("/:actor/inbox", routes.ActorInbox)
- app.All("/:actor/outbox", routes.ActorOutbox)
+ app.Get("/:actor/outbox", routes.GetActorOutbox)
+ app.Post("/:actor/outbox", routes.PostActorOutbox)
app.Get("/:actor/following", routes.ActorFollowing)
- app.All("/:actor/followers", routes.ActorFollowers)
+ app.Get("/:actor/followers", routes.ActorFollowers)
app.Get("/:actor/archive", routes.ActorArchive)
- app.Get("/:actor", routes.ActorOutboxGet)
- app.Get("/:actor/:post", routes.ActorPostGet)
+ app.Get("/:actor", routes.ActorPosts)
+ app.Get("/:actor/:post", routes.ActorPost)
db.PrintAdminAuth()