Remove /status placeholder

This commit is contained in:
Lion Kortlepel 2021-12-08 17:37:06 +01:00
parent bbe92dfa0f
commit 924e18c163
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -318,6 +318,7 @@ void Http::Server::THttpServerInstance::operator()() {
res.set_content(SystemsBad == 0 ? "0" : "1", "text/plain"); res.set_content(SystemsBad == 0 ? "0" : "1", "text/plain");
res.status = 200; res.status = 200;
}); });
/*
HttpLibServerInstance->Get("/status", [](const httplib::Request&, httplib::Response& res) { HttpLibServerInstance->Get("/status", [](const httplib::Request&, httplib::Response& res) {
try { try {
json::Document response; json::Document response;
@ -355,6 +356,7 @@ void Http::Server::THttpServerInstance::operator()() {
res.status = 500; res.status = 500;
} }
}); });
*/
// magic endpoint // magic endpoint
HttpLibServerInstance->Get({ 0x2f, 0x6b, 0x69, 0x74, 0x74, 0x79 }, [](const httplib::Request&, httplib::Response& res) { HttpLibServerInstance->Get({ 0x2f, 0x6b, 0x69, 0x74, 0x74, 0x79 }, [](const httplib::Request&, httplib::Response& res) {
res.set_content(std::string(Magic), "text/plain"); res.set_content(std::string(Magic), "text/plain");