Add server endpoint for server information page

This commit is contained in:
Ethan O'Brien
2024-07-11 09:09:02 -05:00
parent 8c9af03928
commit 002070ad91
4 changed files with 53 additions and 8 deletions

View File

@@ -181,6 +181,7 @@ pub async fn request(req: HttpRequest, body: String) -> HttpResponse {
"/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
}
}