diff options
author | 2022-12-09 05:37:12 -0500 | |
---|---|---|
committer | 2022-12-09 11:37:12 +0100 | |
commit | 477ae50933ab7447757752ec35bf898db287acff (patch) | |
tree | 28750a1aea3cda180ca1461cfad7ea130c22bba1 /internal/api/client/status/status.go | |
parent | [chore] move caches to a separate State{} structure (#1078) (diff) | |
download | gotosocial-477ae50933ab7447757752ec35bf898db287acff.tar.xz |
[feature] Allow users to create + delete bookbarks, and view bookmarked statuses (#1168)
* Implement Bookmarks
* Update based on review comments
* Update swagger doc
* Fix argument passing to status.Bookmark
* Update changed test
* Updates based on latest PR review
Diffstat (limited to 'internal/api/client/status/status.go')
-rw-r--r-- | internal/api/client/status/status.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/api/client/status/status.go b/internal/api/client/status/status.go index 67f046abd..dc32ae9b5 100644 --- a/internal/api/client/status/status.go +++ b/internal/api/client/status/status.go @@ -96,6 +96,9 @@ func (m *Module) Route(r router.Router) error { r.AttachHandler(http.MethodPost, UnreblogPath, m.StatusUnboostPOSTHandler) r.AttachHandler(http.MethodGet, RebloggedPath, m.StatusBoostedByGETHandler) + r.AttachHandler(http.MethodPost, BookmarkPath, m.StatusBookmarkPOSTHandler) + r.AttachHandler(http.MethodPost, UnbookmarkPath, m.StatusUnbookmarkPOSTHandler) + r.AttachHandler(http.MethodGet, ContextPath, m.StatusContextGETHandler) r.AttachHandler(http.MethodGet, BasePathWithID, m.muxHandler) |