summaryrefslogtreecommitdiff
path: root/internal/api/activitypub/users/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/activitypub/users/user.go')
-rw-r--r--internal/api/activitypub/users/user.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/api/activitypub/users/user.go b/internal/api/activitypub/users/user.go
index 7a06e6f03..7fb5f6aa5 100644
--- a/internal/api/activitypub/users/user.go
+++ b/internal/api/activitypub/users/user.go
@@ -58,6 +58,8 @@ const (
StatusRepliesPath = StatusPath + "/replies"
// AcceptPath is for serving accepts of a status.
AcceptPath = BasePath + "/" + uris.AcceptsPath + "/:" + apiutil.IDKey
+ // AuthorizationsPath is for serving authorizations of an interaction.
+ AuthorizationsPath = BasePath + "/" + uris.AuthorizationsPath + "/:" + apiutil.IDKey
)
type Module struct {
@@ -80,4 +82,5 @@ func (m *Module) Route(attachHandler func(method string, path string, f ...gin.H
attachHandler(http.MethodGet, StatusRepliesPath, m.StatusRepliesGETHandler)
attachHandler(http.MethodGet, OutboxPath, m.OutboxGETHandler)
attachHandler(http.MethodGet, AcceptPath, m.AcceptGETHandler)
+ attachHandler(http.MethodGet, AuthorizationsPath, m.AuthorizationGETHandler)
}