From 3381974e0c09d4b7c5f90d611454b5480f5936b6 Mon Sep 17 00:00:00 2001 From: ZhenYi <434836402@qq.com> Date: Tue, 17 Dec 2024 23:21:54 +0800 Subject: [PATCH] fix routes --- src/api/init.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/api/init.rs b/src/api/init.rs index 7e60f2f..7851668 100644 --- a/src/api/init.rs +++ b/src/api/init.rs @@ -27,7 +27,10 @@ pub async fn init_api() -> Result<(), Error>{ .service( scope("/api") .route("/version", web::get().to(api_version)) - .configure(app_routes::routes) + .service( + web::scope("/v1") + .configure(app_routes::routes) + ) ) }) .bind(cfg.http.starter())?