| 915 | } |
| 916 | |
| 917 | static bool is_autoload(const common_params & params, const server_http_req & req) { |
| 918 | std::string autoload = req.get_param("autoload"); |
| 919 | if (autoload.empty()) { |
| 920 | return params.models_autoload; |
| 921 | } else { |
| 922 | return autoload == "true" || autoload == "1"; |
| 923 | } |
| 924 | } |
| 925 | |
| 926 | void server_models_routes::init_routes() { |
| 927 | this->get_router_props = [this](const server_http_req & req) { |
no test coverage detected