summaryrefslogtreecommitdiff
path: root/internal/api/client/followrequests/followrequest.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/client/followrequests/followrequest.go')
-rw-r--r--internal/api/client/followrequests/followrequest.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/api/client/followrequests/followrequest.go b/internal/api/client/followrequests/followrequest.go
index 4d4f0837a..97a7a87d9 100644
--- a/internal/api/client/followrequests/followrequest.go
+++ b/internal/api/client/followrequests/followrequest.go
@@ -36,6 +36,8 @@ const (
AuthorizePath = BasePathWithID + "/authorize"
// RejectPath is used for rejecting follow requests
RejectPath = BasePathWithID + "/reject"
+ // OutgoingPath is used for fetching the list of accounts you requested to follow.
+ OutgoingPath = BasePath + "/outgoing"
)
type Module struct {
@@ -50,6 +52,7 @@ func New(processor *processing.Processor) *Module {
func (m *Module) Route(attachHandler func(method string, path string, f ...gin.HandlerFunc) gin.IRoutes) {
attachHandler(http.MethodGet, BasePath, m.FollowRequestGETHandler)
+ attachHandler(http.MethodGet, OutgoingPath, m.OutgoingFollowRequestGETHandler)
attachHandler(http.MethodPost, AuthorizePath, m.FollowRequestAuthorizePOSTHandler)
attachHandler(http.MethodPost, RejectPath, m.FollowRequestRejectPOSTHandler)
}