This commit is contained in:
erik 2023-11-15 08:53:02 +01:00 committed by Michael Jerger
parent d7abff31f6
commit b085ce37a6
2 changed files with 4 additions and 5 deletions

View file

@ -897,11 +897,11 @@ func Routes() *web.Route {
}, context_service.UserIDAssignmentAPI())
m.Group("/repository-id/{repository-id}", func() {
m.Get("", activitypub.Repository)
m.Post("/inbox", // ToDo: We may want a m.Patch method here, as we are not replacing stars
m.Post("/inbox", // ToDo: Post or Put?
// TODO: bind ativities here
bind(forgefed.Star{}),
//activitypub.ReqHTTPSignature(),
activitypub.RepositoryInbox) // ToDo: We may need to use another method to add a star to the repo
activitypub.RepositoryInbox)
}, context_service.RepositoryIDAssignmentAPI())
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryActivityPub))
}