diff options
author | 2022-11-08 17:51:44 +0100 | |
---|---|---|
committer | 2022-11-08 17:51:44 +0100 | |
commit | eb25739c340b2c541e37422c2df1ef7b5c4de0f5 (patch) | |
tree | 03b21d945f1f95ad9acf56d5bb7c3d6b45642021 /internal/api/client/admin/admin.go | |
parent | [chore]: Bump github.com/spf13/viper from 1.13.0 to 1.14.0 (#1003) (diff) | |
download | gotosocial-eb25739c340b2c541e37422c2df1ef7b5c4de0f5.tar.xz |
[frontend] Custom Emoji Deletion (#994)
* re-add eslint
* fix oauth url getting too long
* actually attach single emoji get and delete routes
* basic emoji details + deletion using rtk query
* refactor emoji upload to rtk query
* clean up old redux api+reducers for custom emoji
* fix validation order
* refactor custom emoji form fields
* remove unused requires
* cleanup, fix most eslint errors
* more small eslint fixes
* fix max emoji size
* tiny bit of function documentation
Diffstat (limited to 'internal/api/client/admin/admin.go')
-rw-r--r-- | internal/api/client/admin/admin.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/api/client/admin/admin.go b/internal/api/client/admin/admin.go index e8aac0dee..0ef8b4fcc 100644 --- a/internal/api/client/admin/admin.go +++ b/internal/api/client/admin/admin.go @@ -79,6 +79,8 @@ func New(processor processing.Processor) api.ClientModule { func (m *Module) Route(r router.Router) error { r.AttachHandler(http.MethodPost, EmojiPath, m.EmojiCreatePOSTHandler) r.AttachHandler(http.MethodGet, EmojiPath, m.EmojisGETHandler) + r.AttachHandler(http.MethodDelete, EmojiPathWithID, m.EmojiDELETEHandler) + r.AttachHandler(http.MethodGet, EmojiPathWithID, m.EmojiGETHandler) r.AttachHandler(http.MethodPost, DomainBlocksPath, m.DomainBlocksPOSTHandler) r.AttachHandler(http.MethodGet, DomainBlocksPath, m.DomainBlocksGETHandler) r.AttachHandler(http.MethodGet, DomainBlocksPathWithID, m.DomainBlockGETHandler) |