From f2898927f1b92d3c8cd9e7c63ce27dee7e6ae88f Mon Sep 17 00:00:00 2001 From: George Goldberg Date: Thu, 29 Jun 2017 22:40:14 +0100 Subject: PLT-6474: Server: Add elasticsearch/test endpoint to API. (#6792) --- api4/api.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'api4/api.go') 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() -- cgit v1.2.3-1-g7c22