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.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/routers/api/v1/api.go b/routers/api/v1/api.go
index 34ce9cc0a..2e976e966 100644
--- a/routers/api/v1/api.go
+++ b/routers/api/v1/api.go
@@ -647,10 +647,17 @@ func Routes() *web.Route {
m.Group("/activitypub", func() {
m.Group("/user/{username}", func() {
m.Get("", activitypub.Person)
- m.Post("/inbox", activitypub.ReqSignature(), activitypub.PersonInbox)
+ m.Post("/inbox", activitypub.ReqHTTPSignature(), activitypub.PersonInbox)
m.Get("/outbox", activitypub.PersonOutbox)
m.Get("/following", activitypub.PersonFollowing)
m.Get("/followers", activitypub.PersonFollowers)
+ m.Get("/liked", activitypub.PersonLiked)
+ m.Group("/{reponame}", func() {
+ m.Get("", activitypub.Repo)
+ m.Post("/inbox", activitypub.ReqHTTPSignature(), activitypub.RepoInbox)
+ m.Get("/outbox", activitypub.RepoOutbox)
+ m.Get("/followers", activitypub.RepoFollowers)
+ }, repoAssignment())
}, context_service.UserAssignmentAPI())
})
}