deleted rootfs and auth_service

This commit is contained in:
wt committed 2024-12-15 01:58:36 +07:00
1 parent b694830190
commit 85652a4e99
156 files changed
-2051

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
#ifndef HELPERS_HPP
#define HELPERS_HPP
#include <httplib.h>
#include <json.hpp>
static bool check_body(const httplib::Request &request)
{
if (request.body.empty())
return false;
nlohmann::json json_body = nlohmann::json::parse(request.body);
if (json_body["token"] == nullptr)
return false;
return true;
}
#endif // HELPERS_HPP