Skip to content

Commit c18c454

Browse files
committed
add 2 endpoints
1 parent 4667264 commit c18c454

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/system-tests/main.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,19 @@ int main(int argc, char* argv[]) {
8989
RequestHandler handler(*finalized_config, event_scheduler, logger);
9090

9191
httplib::Server svr;
92+
93+
// Health check endpoint for container health checks
94+
svr.Get("/healthcheck", [](const httplib::Request&, httplib::Response& res) {
95+
res.set_content("OK", "text/plain");
96+
res.status = 200;
97+
});
98+
99+
// Root endpoint for warmup requests
100+
svr.Get("/", [](const httplib::Request&, httplib::Response& res) {
101+
res.set_content("OK", "text/plain");
102+
res.status = 200;
103+
});
104+
92105
svr.Get("/trace/config",
93106
[&handler](const httplib::Request& req, httplib::Response& res) {
94107
handler.on_trace_config(req, res);

0 commit comments

Comments
 (0)