Add user credentials backup feature

This commit is contained in:
blankhex committed 2026-10-24 18:50:25 +03:00
1 parent db6a333029
commit ef2667e71e
9 files changed
+261 -3

No files matched your search

+2
View File
@@ -46,6 +46,8 @@ func (h *Handler) registerRoutes(mux *http.ServeMux) {
mux.Handle("GET /api/users/{id}/avatar", publicChain.ThenFunc(h.getUserAvatar))
mux.Handle("GET /api/users", superuserChain.ThenFunc(h.listUsers))
mux.Handle("GET /api/users/export", superuserChain.ThenFunc(h.exportUsers))
mux.Handle("POST /api/users/import", superuserChain.ThenFunc(h.importUsers))
mux.Handle("PUT /api/users/{id}/password", superuserChain.ThenFunc(h.changeUserPassword))
mux.Handle("DELETE /api/users/{id}/sessions", superuserChain.ThenFunc(h.signoutUserSessions))