server : make models endpoints private when authentication is enabled (#26347)

* server : make models endpoints private when authentication is enabled

* tests : fix models endpoint auth
This commit is contained in:
s0mecode
2026-08-19 22:44:42 +04:00
committed by GitHub
parent dc72703fc6
commit ee0ea03adf
4 changed files with 12 additions and 12 deletions
-2
View File
@@ -198,8 +198,6 @@ bool server_http_context::init(const common_params & params) {
std::unordered_set<std::string> endpoints {
"/health",
"/v1/health",
"/models",
"/v1/models",
};
endpoints.insert(frontend_paths.begin(), frontend_paths.end());
return endpoints;