summaryrefslogtreecommitdiff
path: root/internal/api/client/accounts/accounts.go
diff options
context:
space:
mode:
authorLibravatar Patrycja <github@ptrcnull.me>2024-12-08 13:47:07 +0100
committerLibravatar GitHub <noreply@github.com>2024-12-08 13:47:07 +0100
commit642f5230e68b08fdcb993a92e9fda119892d5ccf (patch)
tree7dfb21a27d38260060bb301bf7b64b91d253b927 /internal/api/client/accounts/accounts.go
parent[feature] add support for receiving federated status edits (#3597) (diff)
downloadgotosocial-642f5230e68b08fdcb993a92e9fda119892d5ccf.tar.xz
[chore] stub /api/v1/accounts/{id}/featured_tags endpoint (#3598)
* [chore] stub /api/v1/accounts/{id}/featured_tags endpoint * fix swagger parsing issue --------- Co-authored-by: tobi <31960611+tsmethurst@users.noreply.github.com> Co-authored-by: tobi <tobi.smethurst@protonmail.com>
Diffstat (limited to 'internal/api/client/accounts/accounts.go')
-rw-r--r--internal/api/client/accounts/accounts.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/api/client/accounts/accounts.go b/internal/api/client/accounts/accounts.go
index 0dbc5ea53..f21d23185 100644
--- a/internal/api/client/accounts/accounts.go
+++ b/internal/api/client/accounts/accounts.go
@@ -40,6 +40,7 @@ const (
BlockPath = BasePathWithID + "/block"
DeletePath = BasePath + "/delete"
+ FeaturedTagsPath = BasePathWithID + "/featured_tags"
FollowersPath = BasePathWithID + "/followers"
FollowingPath = BasePathWithID + "/following"
FollowPath = BasePathWithID + "/follow"
@@ -98,6 +99,9 @@ func (m *Module) Route(attachHandler func(method string, path string, f ...gin.H
// get account's statuses
attachHandler(http.MethodGet, StatusesPath, m.AccountStatusesGETHandler)
+ // get account's featured tags
+ attachHandler(http.MethodGet, FeaturedTagsPath, m.AccountFeaturedTagsGETHandler)
+
// get following or followers
attachHandler(http.MethodGet, FollowersPath, m.AccountFollowersGETHandler)
attachHandler(http.MethodGet, FollowingPath, m.AccountFollowingGETHandler)