added add_user and del_user

This commit is contained in:
wt committed 2024-05-23 12:38:59 +07:00
1 parent fa573aa734
commit 920c6bcefc
6 files changed
+142 -18

No files matched your search

+3 -3
View File
@@ -11,11 +11,11 @@ int main() {
httplib::Server srv;
srv.Post("/api/token", auth);
srv.Post("/api/user", get_user);
srv.Post("/api/users/user", get_user);
srv.Post("/api/users/all", get_all_users);
// srv.Post("/api/adduser", add_user);
srv.Post("/api/users/add", add_user);
// srv.Post("/api/changepassword", change_password);
// srv.Post("/api/deluser", del_user);
srv.Post("/api/users/del", del_user);
// srv.Post("/api/deluserassuperuser", del_user_as_superuser);
srv.Post("/api/access", user_access);