correct http verb for endpoints
This commit is contained in:
parent
a1351efc0b
commit
bd52541110
1 changed files with 2 additions and 2 deletions
|
@ -3304,8 +3304,8 @@ int main(int argc, char ** argv) {
|
|||
json_schema_to_grammar_mjs, json_schema_to_grammar_mjs_len, "text/javascript; charset=utf-8"));
|
||||
|
||||
// register API routes
|
||||
svr.Post("/health", handle_health);
|
||||
svr.Post("/props", handle_props);
|
||||
svr.Get ("/health", handle_health);
|
||||
svr.Get ("/props", handle_props);
|
||||
svr.Get ("/v1/models", handle_models);
|
||||
svr.Post("/completion", handle_completions); // legacy
|
||||
svr.Post("/completions", handle_completions);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue