File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -393,7 +393,7 @@ node index.js
393393
394394# ## GET `/health`: Returns health check result
395395
396- This endpoint is public (no API key check).
396+ This endpoint is public (no API key check). `/v1/health` also works.
397397
398398**Response format**
399399
Original file line number Diff line number Diff line change @@ -4184,6 +4184,7 @@ int main(int argc, char ** argv) {
41844184 auto middleware_validate_api_key = [¶ms, &res_error](const httplib::Request & req, httplib::Response & res) {
41854185 static const std::unordered_set<std::string> public_endpoints = {
41864186 " /health" ,
4187+ " /v1/health" ,
41874188 " /models" ,
41884189 " /v1/models" ,
41894190 " /api/tags"
@@ -5232,6 +5233,7 @@ int main(int argc, char ** argv) {
52325233
52335234 // register API routes
52345235 svr->Get (params.api_prefix + " /health" , handle_health); // public endpoint (no API key check)
5236+ svr->Get (params.api_prefix + " /v1/health" , handle_health); // public endpoint (no API key check)
52355237 svr->Get (params.api_prefix + " /metrics" , handle_metrics);
52365238 svr->Get (params.api_prefix + " /props" , handle_props);
52375239 svr->Post (params.api_prefix + " /props" , handle_props_change);
You can’t perform that action at this time.
0 commit comments