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
393
393
394
394
# ## GET `/health`: Returns health check result
395
395
396
- This endpoint is public (no API key check).
396
+ This endpoint is public (no API key check). `/v1/health` also works.
397
397
398
398
**Response format**
399
399
Original file line number Diff line number Diff line change @@ -4184,6 +4184,7 @@ int main(int argc, char ** argv) {
4184
4184
auto middleware_validate_api_key = [¶ms, &res_error](const httplib::Request & req, httplib::Response & res) {
4185
4185
static const std::unordered_set<std::string> public_endpoints = {
4186
4186
" /health" ,
4187
+ " /v1/health" ,
4187
4188
" /models" ,
4188
4189
" /v1/models" ,
4189
4190
" /api/tags"
@@ -5232,6 +5233,7 @@ int main(int argc, char ** argv) {
5232
5233
5233
5234
// register API routes
5234
5235
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)
5235
5237
svr->Get (params.api_prefix + " /metrics" , handle_metrics);
5236
5238
svr->Get (params.api_prefix + " /props" , handle_props);
5237
5239
svr->Post (params.api_prefix + " /props" , handle_props_change);
You can’t perform that action at this time.
0 commit comments