diff --git a/src/server.rs b/src/server.rs index af58450..6d5d435 100644 --- a/src/server.rs +++ b/src/server.rs @@ -39,9 +39,9 @@ pub async fn serve(port: &u16, config: &Config) -> std::io::Result<()> { App::new() .with_state(Arc::new(Mutex::new(data))) .at("/", get(handler_service(_static))) - .at("/api/v1/json", get(handler_service(api_simple))) + .at("/api/v2/json", get(handler_service(api_simple))) .at("/api/v3/json", get(handler_service(api_full))) - .at("/api/v1/refresh", get(handler_service(refresh))) + .at("/api/v2/refresh", get(handler_service(refresh))) .at("/api/v3/refresh", get(handler_service(refresh))) .at("/*", get(handler_service(_static))) .enclosed(Logger::new())