diff --git a/GlosSITarget/CommonHttpEndpoints.h b/GlosSITarget/CommonHttpEndpoints.h index 98c7098..8c74834 100644 --- a/GlosSITarget/CommonHttpEndpoints.h +++ b/GlosSITarget/CommonHttpEndpoints.h @@ -8,6 +8,14 @@ namespace CHTE { inline void addEndpoints() { + HttpServer::AddEndpoint( + {"/running", + HttpServer::Method::GET, + [](const httplib::Request& req, httplib::Response& res) { + // TODO: extend this when "passive" running of global mods is implemented + res.set_content(nlohmann::json{{"state", nlohmann::json{{"running", true}}}}.dump(), "text/json"); + }}); + HttpServer::AddEndpoint( {"/settings", HttpServer::Method::GET,