Skip to content

Commit

Permalink
change Scalar path to /api-docs
Browse files Browse the repository at this point in the history
/api/docs doesn't work...?
  • Loading branch information
RubberDuckShobe authored Nov 2, 2024
1 parent 3c89f1f commit 7776ff4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![warn(
#![warn(
clippy::nursery,
clippy::correctness,
clippy::style,
Expand Down 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("/api/docs", 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 7776ff4

Please sign in to comment.