diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-03-13 10:14:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-13 10:14:16 -0400 |
commit | 3ebfb369530e28ca3246c5cd2833e666edce9c90 (patch) | |
tree | a91ef74768301db727ca062354af9cac2b444001 /api4/api.go | |
parent | a284cd8c1817bb5419cb9eae118c85cd7e99c039 (diff) | |
download | chat-3ebfb369530e28ca3246c5cd2833e666edce9c90.tar.gz chat-3ebfb369530e28ca3246c5cd2833e666edce9c90.tar.bz2 chat-3ebfb369530e28ca3246c5cd2833e666edce9c90.zip |
Implement compliance endpoints for APIv4 (#5683)
* Implement compliance endpoints for APIv4
* Add paging to get reports endpoint
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 289291951..fb0ca2758 100644 --- a/api4/api.go +++ b/api4/api.go @@ -65,6 +65,8 @@ type Routes struct { Admin *mux.Router // 'api/v4/admin' + Compliance *mux.Router // 'api/v4/compliance' + System *mux.Router // 'api/v4/system' Preferences *mux.Router // 'api/v4/preferences' @@ -134,6 +136,7 @@ func InitApi(full bool) { BaseRoutes.SAML = BaseRoutes.ApiRoot.PathPrefix("/saml").Subrouter() BaseRoutes.OAuth = BaseRoutes.ApiRoot.PathPrefix("/oauth").Subrouter() BaseRoutes.Admin = BaseRoutes.ApiRoot.PathPrefix("/admin").Subrouter() + BaseRoutes.Compliance = BaseRoutes.ApiRoot.PathPrefix("/compliance").Subrouter() BaseRoutes.System = BaseRoutes.ApiRoot.PathPrefix("/system").Subrouter() BaseRoutes.Preferences = BaseRoutes.User.PathPrefix("/preferences").Subrouter() BaseRoutes.License = BaseRoutes.ApiRoot.PathPrefix("/license").Subrouter() @@ -153,6 +156,7 @@ func InitApi(full bool) { InitWebhook() InitPreference() InitSaml() + InitCompliance() app.Srv.Router.Handle("/api/v4/{anything:.*}", http.HandlerFunc(Handle404)) |