aboutsummaryrefslogtreecommitdiff
path: root/routers/api/v1/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/api.go')
-rw-r--r--routers/api/v1/api.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index ea0109bfe..614134014 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -600,8 +600,10 @@ func Routes(sessioner func(http.Handler) http.Handler) *web.Route {
m.Get("/nodeinfo", misc.NodeInfo)
m.Group("/activitypub", func() {
m.Get("/user/{username}", activitypub.Person)
- m.Post("/user/{username}/inbox", activitypub.ReqSignature(), activitypub.PersonInbox)
- m.Get("/user/{username}/outbox", activitypub.ReqSignature(), activitypub.PersonOutbox)
+ m.Get("/user/{username}/inbox", activitypub.ReqSignature(), activitypub.PersonInboxGet)
+ m.Post("/user/{username}/inbox", activitypub.ReqSignature(), activitypub.PersonInboxPost)
+ m.Get("/user/{username}/outbox", activitypub.ReqSignature(), activitypub.PersonOutboxGet)
+ m.Post("/user/{username}/outbox", activitypub.ReqSignature(), activitypub.PersonOutboxPost)
})
}
m.Get("/signing-key.gpg", misc.SigningKey)