deleted rootfs and auth_service
This commit is contained in:
1 parent
b694830190
commit
85652a4e99
156 files changed
-2051
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user