Make version endpoint always accessible

This commit is contained in:
Saood Karim
2025-06-27 20:34:33 -05:00
parent 66c8dc416d
commit 3a634c7a5c

View File

@@ -3943,9 +3943,9 @@ int main(int argc, char ** argv) {
svr->Post("/slots/:id_slot", handle_slots_action);
svr->Get ("/list", list_saved_prompts);
}
svr->Get ("/version", handle_version);
if (!params.sql_save_file.empty()) {
// these endpoints rely on sql_save_file existing
svr->Get ("/version", handle_version);
svr->Post("/load", handle_load);
svr->Post("/save", handle_save);
svr->Post("/rename", handle_rename);