http: GET/PATCH /api/users/{id} with last-admin guard

This commit is contained in:
2026-05-05 09:41:32 +01:00
parent 7c241c55d1
commit 9e044fd7b0
3 changed files with 160 additions and 0 deletions
+2
View File
@@ -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 {