1
0
Fork 0

feat: add healthcheck feature and update Dockerfile for build process

This commit is contained in:
Arthur K. 2025-01-21 14:20:30 +03:00
parent e78ac289f7
commit ef2f477fcd
Signed by: wzray
GPG key ID: B97F30FDC4636357
3 changed files with 29 additions and 16 deletions

View file

@ -0,0 +1,6 @@
#include "httplib.hpp"
int main() {
auto res = httplib::Client("127.0.0.1", 80).Get("/health");
return !(res && res->status == 200);
}