summaryrefslogtreecommitdiffstats
path: root/api4/api.go
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-06-29 22:40:14 +0100
committerJoram Wilander <jwawilander@gmail.com>2017-06-29 17:40:14 -0400
commitf2898927f1b92d3c8cd9e7c63ce27dee7e6ae88f (patch)
treef29a8058cf581d128502b2da532fc551aa1101b9 /api4/api.go
parenta4f363a50b7807de9ac086ee0e62442a7645f5e8 (diff)
downloadchat-f2898927f1b92d3c8cd9e7c63ce27dee7e6ae88f.tar.gz
chat-f2898927f1b92d3c8cd9e7c63ce27dee7e6ae88f.tar.bz2
chat-f2898927f1b92d3c8cd9e7c63ce27dee7e6ae88f.zip
PLT-6474: Server: Add elasticsearch/test endpoint to API. (#6792)
Diffstat (limited to 'api4/api.go')
-rw-r--r--api4/api.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/api4/api.go b/api4/api.go
index a636581d7..be957d63b 100644
--- a/api4/api.go
+++ b/api4/api.go
@@ -77,6 +77,8 @@ type Routes struct {
LDAP *mux.Router // 'api/v4/ldap'
+ Elasticsearch *mux.Router // 'api/v4/elasticsearch'
+
Brand *mux.Router // 'api/v4/brand'
System *mux.Router // 'api/v4/system'
@@ -171,6 +173,7 @@ func InitApi(full bool) {
BaseRoutes.Public = BaseRoutes.ApiRoot.PathPrefix("/public").Subrouter()
BaseRoutes.Reactions = BaseRoutes.ApiRoot.PathPrefix("/reactions").Subrouter()
BaseRoutes.Jobs = BaseRoutes.ApiRoot.PathPrefix("/jobs").Subrouter()
+ BaseRoutes.Elasticsearch = BaseRoutes.ApiRoot.PathPrefix("/elasticsearch").Subrouter()
BaseRoutes.Emojis = BaseRoutes.ApiRoot.PathPrefix("/emoji").Subrouter()
BaseRoutes.Emoji = BaseRoutes.Emojis.PathPrefix("/{emoji_id:[A-Za-z0-9]+}").Subrouter()
@@ -193,6 +196,7 @@ func InitApi(full bool) {
InitCompliance()
InitCluster()
InitLdap()
+ InitElasticsearch()
InitBrand()
InitJob()
InitCommand()