diff options
| author | 2025-03-04 11:01:25 +0100 | |
|---|---|---|
| committer | 2025-03-04 10:01:25 +0000 | |
| commit | 829143d2636d4c0d274bf2ab4559912f472a2bc4 (patch) | |
| tree | b28175fadfbd2d02801337975560e522dd8e129b /internal/api/client.go | |
| parent | [chore] fixed email template to align with the new "Log in" button + separate... (diff) | |
| download | gotosocial-829143d2636d4c0d274bf2ab4559912f472a2bc4.tar.xz | |
[feature] Add token review / delete to backend + settings panel (#3845)
Diffstat (limited to 'internal/api/client.go')
| -rw-r--r-- | internal/api/client.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/api/client.go b/internal/api/client.go index 3112aeea5..a928176de 100644 --- a/internal/api/client.go +++ b/internal/api/client.go @@ -54,6 +54,7 @@ import ( "github.com/superseriousbusiness/gotosocial/internal/api/client/streaming" "github.com/superseriousbusiness/gotosocial/internal/api/client/tags" "github.com/superseriousbusiness/gotosocial/internal/api/client/timelines" + "github.com/superseriousbusiness/gotosocial/internal/api/client/tokens" "github.com/superseriousbusiness/gotosocial/internal/api/client/user" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/middleware" @@ -99,6 +100,7 @@ type Client struct { streaming *streaming.Module // api/v1/streaming tags *tags.Module // api/v1/tags timelines *timelines.Module // api/v1/timelines + tokens *tokens.Module // api/v1/tokens user *user.Module // api/v1/user } @@ -152,6 +154,7 @@ func (c *Client) Route(r *router.Router, m ...gin.HandlerFunc) { c.streaming.Route(h) c.tags.Route(h) c.timelines.Route(h) + c.tokens.Route(h) c.user.Route(h) } @@ -193,6 +196,7 @@ func NewClient(state *state.State, p *processing.Processor) *Client { streaming: streaming.New(p, time.Second*30, 4096), tags: tags.New(p), timelines: timelines.New(p), + tokens: tokens.New(p), user: user.New(p), } } |
