Skip to content

Commit

Permalink
fix router path
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn committed Sep 27, 2023
1 parent 5e1b5f0 commit 0a28392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/oapi-generics/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async fn main() {

let router = router
.unshift(doc.into_router("/api-doc/openapi.json"))
.unshift(SwaggerUi::new("/api-doc/openapi.json").into_router("/"));
.unshift(SwaggerUi::new("/api-doc/openapi.json").into_router("/swagger-ui"));

let acceptor = TcpListener::new("0.0.0.0:5800").bind().await;
Server::new(acceptor).serve(router).await;
Expand Down

0 comments on commit 0a28392

Please sign in to comment.