http: GET/PATCH /api/users/{id} with last-admin guard
This commit is contained in:
@@ -253,6 +253,8 @@ func (s *Server) routes(r chi.Router) {
|
||||
|
||||
r.Get("/api/users", s.handleAPIUsersList)
|
||||
r.Post("/api/users", s.handleAPIUserCreate)
|
||||
r.Get("/api/users/{id}", s.handleAPIUserGet)
|
||||
r.Patch("/api/users/{id}", s.handleAPIUserPatch)
|
||||
r.Post("/api/notifications/{id}/test", s.handleAPINotificationTest)
|
||||
|
||||
if s.deps.UI != nil {
|
||||
|
||||
Reference in New Issue
Block a user