Skip to content

Commit

Permalink
Modify route for / path
Browse files Browse the repository at this point in the history
  • Loading branch information
caipira113 committed Mar 21, 2024
1 parent 3c4b8a7 commit b3b976f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ async fn token_proxy(data: Data<AppState>, req: HttpRequest, bytes: Bytes) -> im

pub fn config_routes(cfg: &mut web::ServiceConfig) {
cfg
.service(web::resource("/").route(web::get().to(redirect)))
.service(web::resource("/v2/{tail:.*}").route(web::get().to(api_v2)))
.service(web::resource(format!("/{}/token", PACKAGE_NAME)).route(web::get().to(token_proxy)));
.service(web::resource(format!("/{}/token", PACKAGE_NAME)).route(web::get().to(token_proxy)))
.service(web::resource("/{tail:.*}").route(web::get().to(redirect)));
}

0 comments on commit b3b976f

Please sign in to comment.