auth_service in config file
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 parent
c24b4ef641
commit
c376868513
2 files changed
+6
-3
No files matched your search
+3
-1
@@ -3,10 +3,12 @@
|
||||
#include <routes.hpp>
|
||||
#include <json.hpp>
|
||||
#include <types.hpp>
|
||||
#include <config/config.hpp>
|
||||
|
||||
bool authenticate(const std::string &token)
|
||||
{
|
||||
httplib::Client cli(AUTH_SERVICE);
|
||||
config::config.setConfig("../config.json")
|
||||
httplib::Client cli(config::config.getConfig()["auth_service"]);
|
||||
|
||||
std::string body = R"({"token":")" + token + R"("})";
|
||||
// body << R"({"token":")" << token << R"("})";
|
||||
|
||||
Reference in new issue
Block a user