Remove admin webui, move options to CLI args

This commit is contained in:
Ethan O'Brien
2024-11-02 12:22:16 -05:00
parent 7aaf22c923
commit 8bc07a6419
10 changed files with 20 additions and 167 deletions

View File

@@ -199,7 +199,6 @@ pub async fn request(req: HttpRequest, body: String) -> HttpResponse {
"/api/webui/startLoginbonus" => webui::start_loginbonus(req, body),
"/api/webui/import" => webui::import(req, body),
"/api/webui/set_time" => webui::set_time(req, body),
"/api/webui/admin" => webui::admin_post(req, body),
_ => api_req(req, body).await
}
} else {
@@ -214,7 +213,6 @@ pub async fn request(req: HttpRequest, body: String) -> HttpResponse {
"/web/announcement" => web::announcement(req),
"/api/webui/userInfo" => webui::user(req),
"/webui/logout" => webui::logout(req),
"/api/webui/admin" => webui::admin(req),
"/api/webui/export" => webui::export(req),
"/api/webui/serverInfo" => webui::server_info(req),
_ => api_req(req, body).await