diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-03-21 09:06:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-21 09:06:08 -0400 |
commit | fd6e2f3f73c1fbdda49e4f32d0e40e8d7230518b (patch) | |
tree | 708faaa67a39648dcd9deab953d836771f531d8f /api4/user.go | |
parent | 4968ef0759087f34c1674a385707f6befef810b7 (diff) | |
download | chat-fd6e2f3f73c1fbdda49e4f32d0e40e8d7230518b.tar.gz chat-fd6e2f3f73c1fbdda49e4f32d0e40e8d7230518b.tar.bz2 chat-fd6e2f3f73c1fbdda49e4f32d0e40e8d7230518b.zip |
Implement GET /audits endpoint for APIv4 (#5779)
* Implement GET /audits endpoint for APIv4
* Fix log unit test
Diffstat (limited to 'api4/user.go')
-rw-r--r-- | api4/user.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/api4/user.go b/api4/user.go index 1668f9c2c..383bb2f59 100644 --- a/api4/user.go +++ b/api4/user.go @@ -44,7 +44,7 @@ func InitUser() { BaseRoutes.User.Handle("/sessions", ApiSessionRequired(getSessions)).Methods("GET") BaseRoutes.User.Handle("/sessions/revoke", ApiSessionRequired(revokeSession)).Methods("POST") - BaseRoutes.User.Handle("/audits", ApiSessionRequired(getAudits)).Methods("GET") + BaseRoutes.User.Handle("/audits", ApiSessionRequired(getUserAudits)).Methods("GET") } func createUser(c *Context, w http.ResponseWriter, r *http.Request) { @@ -720,7 +720,7 @@ func revokeSession(c *Context, w http.ResponseWriter, r *http.Request) { ReturnStatusOK(w) } -func getAudits(c *Context, w http.ResponseWriter, r *http.Request) { +func getUserAudits(c *Context, w http.ResponseWriter, r *http.Request) { c.RequireUserId() if c.Err != nil { return |