diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-03-14 09:35:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-14 09:35:48 -0400 |
commit | ad0ed008fe54534fcc089f479df606ab921901a9 (patch) | |
tree | a5fda084fb7ea61941449b393a6084f0c049195c /api4/api.go | |
parent | d03367c56005470396d883d273323ecbd8d4f243 (diff) | |
download | chat-ad0ed008fe54534fcc089f479df606ab921901a9.tar.gz chat-ad0ed008fe54534fcc089f479df606ab921901a9.tar.bz2 chat-ad0ed008fe54534fcc089f479df606ab921901a9.zip |
Implement brand image endpoints for APIv4 (#5733)
* Implement brand image endpoints for APIv4
* Fix unit test
Diffstat (limited to 'api4/api.go')
-rw-r--r-- | api4/api.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/api4/api.go b/api4/api.go index 53d7394c7..422af7b7b 100644 --- a/api4/api.go +++ b/api4/api.go @@ -69,6 +69,8 @@ type Routes struct { LDAP *mux.Router // 'api/v4/ldap' + Brand *mux.Router // 'api/v4/brand' + System *mux.Router // 'api/v4/system' Preferences *mux.Router // 'api/v4/preferences' @@ -142,6 +144,7 @@ func InitApi(full bool) { BaseRoutes.Compliance = BaseRoutes.ApiRoot.PathPrefix("/compliance").Subrouter() BaseRoutes.Cluster = BaseRoutes.ApiRoot.PathPrefix("/cluster").Subrouter() BaseRoutes.LDAP = BaseRoutes.ApiRoot.PathPrefix("/ldap").Subrouter() + BaseRoutes.Brand = BaseRoutes.ApiRoot.PathPrefix("/brand").Subrouter() BaseRoutes.System = BaseRoutes.ApiRoot.PathPrefix("/system").Subrouter() BaseRoutes.Preferences = BaseRoutes.User.PathPrefix("/preferences").Subrouter() BaseRoutes.License = BaseRoutes.ApiRoot.PathPrefix("/license").Subrouter() @@ -164,6 +167,7 @@ func InitApi(full bool) { InitCompliance() InitCluster() InitLdap() + InitBrand() app.Srv.Router.Handle("/api/v4/{anything:.*}", http.HandlerFunc(Handle404)) |