Skip to content

Commit

Permalink
fix routes
Browse files Browse the repository at this point in the history
  • Loading branch information
lazhenyi committed Dec 17, 2024
1 parent 99c22b9 commit 3381974
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())?
Expand Down

0 comments on commit 3381974

Please sign in to comment.