making easy
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
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:
+1
-2
@@ -1,13 +1,12 @@
|
||||
#include <auth/auth.hpp>
|
||||
#include <httplib.h>
|
||||
#include <routes.hpp>
|
||||
#include <json.hpp>
|
||||
#include <types.hpp>
|
||||
#include <config/config.hpp>
|
||||
|
||||
bool authenticate(const std::string &token)
|
||||
{
|
||||
config::config.setConfig("../config.json")
|
||||
// config::config.setConfig(std::string("../config.json"));
|
||||
httplib::Client cli(config::config.getConfig()["auth_service"]);
|
||||
|
||||
std::string body = R"({"token":")" + token + R"("})";
|
||||
|
||||
Reference in New Issue
Block a user