Skip to content

Commit

Permalink
change Scalar route to /api/docs
Browse files Browse the repository at this point in the history
  • Loading branch information
RubberDuckShobe committed Nov 2, 2024
1 parent 9d27f55 commit 3c89f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ fn make_router(state: AppState) -> Router {
.nest("//as_steamlogin", routes_steam_doubleslash()) // for that one edge case
.nest("/as", routes_as(&state.config.radio.cgr_location))
.nest("/api", api_router)
.merge(Scalar::with_url("/scalar", openapi))
.merge(Scalar::with_url("/api/docs", openapi))
.layer(session_layer)
.layer(
// TAKEN FROM: https://github.com/tokio-rs/axum/blob/d1fb14ead1063efe31ae3202e947ffd569875c0b/examples/error-handling/src/main.rs#L60-L77
Expand Down

0 comments on commit 3c89f1f

Please sign in to comment.