diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-03-13 08:29:41 -0400 |
---|---|---|
committer | George Goldberg <george@gberg.me> | 2017-03-13 12:29:41 +0000 |
commit | 1860d05d623b6fd7670121a7e2391605d1281b27 (patch) | |
tree | 8ac40b5663473342fed4ba2a146e2551e9f56ab6 /api4/api.go | |
parent | c372ceebf87295408072a40c63df7c4be9bc2abc (diff) | |
download | chat-1860d05d623b6fd7670121a7e2391605d1281b27.tar.gz chat-1860d05d623b6fd7670121a7e2391605d1281b27.tar.bz2 chat-1860d05d623b6fd7670121a7e2391605d1281b27.zip |
Implement GET /users/autocomplete endpoint for APIv4 (#5742)
Diffstat (limited to 'api4/api.go')
-rw-r--r-- | api4/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api4/api.go b/api4/api.go index 71dfbcdf3..223017151 100644 --- a/api4/api.go +++ b/api4/api.go @@ -92,7 +92,7 @@ func InitApi(full bool) { BaseRoutes.ApiRoot = app.Srv.Router.PathPrefix(model.API_URL_SUFFIX).Subrouter() BaseRoutes.Users = BaseRoutes.ApiRoot.PathPrefix("/users").Subrouter() - BaseRoutes.User = BaseRoutes.Users.PathPrefix("/{user_id:[A-Za-z0-9]+}").Subrouter() + BaseRoutes.User = BaseRoutes.ApiRoot.PathPrefix("/users/{user_id:[A-Za-z0-9]+}").Subrouter() BaseRoutes.UserByUsername = BaseRoutes.Users.PathPrefix("/username/{username:[A-Za-z0-9\\_\\-\\.]+}").Subrouter() BaseRoutes.UserByEmail = BaseRoutes.Users.PathPrefix("/email/{email}").Subrouter() |