some optimization
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Waiting to run
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Waiting to run
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Waiting to run

This commit is contained in:
wt committed 2025-02-14 11:54:07 +07:00
1 parent f5b92b8e50
commit aeefe1ea7f
5 files changed
+25 -17

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ void get_user(const httplib::Request& request, httplib::Response& response)
syslog(LOG_ERR, "access reject in get user request");
return;
}
std::ifstream usersfile("users.json");
std::ifstream usersfile(USERS_FILE);
nlohmann::json all_users = nlohmann::json::parse(usersfile);
usersfile.close();
nlohmann::json response_user_data = nullptr;