added endpoints end refactor

This commit is contained in:
wt committed 2025-08-19 00:01:17 +07:00
1 parent 22dc118616
commit c4ea7a4293
15 files changed
+333 -87

No files matched your search

+6
View File
@@ -12,6 +12,12 @@ static const struct route routes[] = {
{"POST", "/api/token", get_token},
{"POST", "/api/token/verify", verify_token},
{"POST", "/api/users", get_all_users},
{"POST", "/api/users/user", get_user},
{"POST", "/api/users/delete", delete_user},
{"POST", "/api/users/password", change_password},
{"POST", "/api/users/change", change_password},
{"POST", "/api/users/add", add_user},
{"POST", "/api/register", register_user},
{nullptr, nullptr, nullptr}
};