Skip to content

Commit

Permalink
fixed openapi json path
Browse files Browse the repository at this point in the history
  • Loading branch information
pinghe authored May 22, 2024
1 parent d21b3ad commit ef1ac66
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions agdb_server/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ pub(crate) fn app(
routing::put(routes::user::change_password),
);

// let basepath_str = config.basepath.clone();
let full_api_json_path = format!("{}/api/v1/openapi.json", config.basepath);
let full_api_path = format!("{}/api/v1", config.basepath);

Check warning on line 133 in agdb_server/src/app.rs

View workflow job for this annotation

GitHub Actions / agdb_server_format

Diff in /home/runner/work/agdb/agdb/agdb_server/src/app.rs
let full_www_path = config.basepath.to_string();
Router::new()
.merge(
RapiDoc::with_openapi("/watom/api/v1/openapi.json", Api::openapi())
.path("/watom/api/v1"),
RapiDoc::with_openapi(&full_api_json_path, Api::openapi())
.path("/api/v1"),
)
// .nest("/api/v1", api_v1)
.nest(&full_api_path, api_v1)
Expand Down

0 comments on commit ef1ac66

Please sign in to comment.