Skip to content

Commit 7560ecb

Browse files
committed
protect /props endpoint
1 parent 460ec6f commit 7560ecb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/server/server.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2525,7 +2525,6 @@ int main(int argc, char ** argv) {
25252525
"/health",
25262526
"/models",
25272527
"/v1/models",
2528-
"/props",
25292528
};
25302529

25312530
// If API key is not set, skip validation
@@ -3277,7 +3276,7 @@ int main(int argc, char ** argv) {
32773276
// register API routes
32783277
svr->Get ("/health", handle_health); // public endpoint (no API key check)
32793278
svr->Get ("/metrics", handle_metrics);
3280-
svr->Get ("/props", handle_props); // public endpoint (no API key check)
3279+
svr->Get ("/props", handle_props);
32813280
svr->Post("/props", handle_props_change);
32823281
svr->Get ("/models", handle_models); // public endpoint (no API key check)
32833282
svr->Get ("/v1/models", handle_models); // public endpoint (no API key check)

0 commit comments

Comments
 (0)