This commit is contained in:
parent
1ad3704fa0
commit
37f2cbc78d
@ -79,7 +79,7 @@ private:
|
|||||||
void handle_get_mount(const httplib::Request &req,
|
void handle_get_mount(const httplib::Request &req,
|
||||||
httplib::Response &res) const;
|
httplib::Response &res) const;
|
||||||
|
|
||||||
void handle_get_mount_list(httplib::Response &res) const;
|
static void handle_get_mount_list(httplib::Response &res);
|
||||||
|
|
||||||
void handle_get_mount_location(const httplib::Request &req,
|
void handle_get_mount_location(const httplib::Request &req,
|
||||||
httplib::Response &res) const;
|
httplib::Response &res) const;
|
||||||
|
@ -185,7 +185,7 @@ handlers::handlers(mgmt_app_config *config, httplib::Server *server)
|
|||||||
handle_get_mount_location(req, res);
|
handle_get_mount_location(req, res);
|
||||||
});
|
});
|
||||||
|
|
||||||
server->Get("/api/v1/mount_list", [this](auto && /* req */, auto &&res) {
|
server->Get("/api/v1/mount_list", [](auto && /* req */, auto &&res) {
|
||||||
handle_get_mount_list(res);
|
handle_get_mount_list(res);
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -384,7 +384,7 @@ void handlers::handle_get_mount(const httplib::Request &req,
|
|||||||
res.status = http_error_codes::ok;
|
res.status = http_error_codes::ok;
|
||||||
}
|
}
|
||||||
|
|
||||||
void handlers::handle_get_mount_list(httplib::Response &res) const {
|
void handlers::handle_get_mount_list(httplib::Response &res) {
|
||||||
auto data_dir = utils::file::directory{app_config::get_root_data_directory()};
|
auto data_dir = utils::file::directory{app_config::get_root_data_directory()};
|
||||||
|
|
||||||
nlohmann::json result;
|
nlohmann::json result;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user