From 642f5230e68b08fdcb993a92e9fda119892d5ccf Mon Sep 17 00:00:00 2001 From: Patrycja Date: Sun, 8 Dec 2024 13:47:07 +0100 Subject: [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 --- internal/api/client/accounts/accounts.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/api/client/accounts/accounts.go') 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) -- cgit v1.2.3