mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-02 11:01:20 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user