diff options
author | Saturnino Abril <saturnino.abril@gmail.com> | 2017-04-19 05:15:15 +0900 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-04-18 16:15:15 -0400 |
commit | d2b86f1b8de4784baf578b611cf80779ccfa722a (patch) | |
tree | 076d56f2522c0d9580e04061db3cce99facce67b /api4/api.go | |
parent | 8aab290d10cc7cdd864cebbd463044abfa2d2aea (diff) | |
download | chat-d2b86f1b8de4784baf578b611cf80779ccfa722a.tar.gz chat-d2b86f1b8de4784baf578b611cf80779ccfa722a.tar.bz2 chat-d2b86f1b8de4784baf578b611cf80779ccfa722a.zip |
APIv4 POST /reactions (#6092)
* APIv4 POST /reactions
* update corresponding V3 endpoint
Diffstat (limited to 'api4/api.go')
-rw-r--r-- | api4/api.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/api4/api.go b/api4/api.go index a91fb80b5..18e1e4022 100644 --- a/api4/api.go +++ b/api4/api.go @@ -82,6 +82,8 @@ type Routes struct { Public *mux.Router // 'api/v4/public' + Reactions *mux.Router // 'api/v4/reactions' + Emojis *mux.Router // 'api/v4/emoji' Emoji *mux.Router // 'api/v4/emoji/{emoji_id:[A-Za-z0-9]+}' @@ -154,6 +156,7 @@ func InitApi(full bool) { BaseRoutes.Preferences = BaseRoutes.User.PathPrefix("/preferences").Subrouter() BaseRoutes.License = BaseRoutes.ApiRoot.PathPrefix("/license").Subrouter() BaseRoutes.Public = BaseRoutes.ApiRoot.PathPrefix("/public").Subrouter() + BaseRoutes.Reactions = BaseRoutes.ApiRoot.PathPrefix("/reactions").Subrouter() BaseRoutes.Emojis = BaseRoutes.ApiRoot.PathPrefix("/emoji").Subrouter() BaseRoutes.Emoji = BaseRoutes.Emojis.PathPrefix("/{emoji_id:[A-Za-z0-9]+}").Subrouter() |