m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-17 09:33:38 -05:00

Update frontend

This commit is contained in:
Sergio
2024-10-25 16:26:28 +03:00
parent 5c4de36052
commit bcfb9ef27a
11 changed files with 197 additions and 49 deletions

View File

@@ -38,7 +38,7 @@ pub async fn serve(port: &u16, config: &Config) -> std::io::Result<()> {
.at("/", get(handler_service(_static)))
.at("/api/v1/simple", get(handler_service(api_simple)))
.at("/api/v1/full", get(handler_service(api_full)))
.at("/refresh", get(handler_service(refresh)))
.at("/api/v1/refresh", get(handler_service(refresh)))
.at("/*", get(handler_service(_static)))
.enclosed(Logger::new())
.serve()