added change_password function and andpoint

This commit is contained in:
wt committed 2024-05-23 13:13:37 +07:00
1 parent 920c6bcefc
commit 9146c216ae
3 files changed
+79 -2

No files matched your search

+1 -2
View File
@@ -14,9 +14,8 @@ int main() {
srv.Post("/api/users/user", get_user);
srv.Post("/api/users/all", get_all_users);
srv.Post("/api/users/add", add_user);
// srv.Post("/api/changepassword", change_password);
srv.Post("/api/users/user/password/change", change_password);
srv.Post("/api/users/del", del_user);
// srv.Post("/api/deluserassuperuser", del_user_as_superuser);
srv.Post("/api/access", user_access);
srv.listen("localhost", 43243);