mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 18:22:41 +01:00
use context
This commit is contained in:
parent
80888b80d6
commit
19628b84c6
1 changed files with 2 additions and 2 deletions
|
@ -774,7 +774,7 @@ func Routes() *web.Route {
|
||||||
m.Group("/user-id/{user-id}", func() {
|
m.Group("/user-id/{user-id}", func() {
|
||||||
m.Get("", activitypub.Person)
|
m.Get("", activitypub.Person)
|
||||||
m.Post("/inbox", activitypub.ReqHTTPSignature(), activitypub.PersonInbox)
|
m.Post("/inbox", activitypub.ReqHTTPSignature(), activitypub.PersonInbox)
|
||||||
}, context_service.UserIDAssignmentAPI())
|
}, context.UserIDAssignmentAPI())
|
||||||
m.Group("/repository-id/{repository-id}", func() {
|
m.Group("/repository-id/{repository-id}", func() {
|
||||||
m.Get("", activitypub.Repository)
|
m.Get("", activitypub.Repository)
|
||||||
m.Post("/inbox",
|
m.Post("/inbox",
|
||||||
|
@ -782,7 +782,7 @@ func Routes() *web.Route {
|
||||||
bind(forgefed.ForgeLike{}),
|
bind(forgefed.ForgeLike{}),
|
||||||
// TODO: activitypub.ReqHTTPSignature(),
|
// TODO: activitypub.ReqHTTPSignature(),
|
||||||
activitypub.RepositoryInbox)
|
activitypub.RepositoryInbox)
|
||||||
}, context_service.RepositoryIDAssignmentAPI())
|
}, context.RepositoryIDAssignmentAPI())
|
||||||
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryActivityPub))
|
}, tokenRequiresScopes(auth_model.AccessTokenScopeCategoryActivityPub))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue