Skip to content

Commit

Permalink
Fix OpenAPI routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam-Cordry committed Jan 23, 2024
1 parent ed2ebeb commit db8dc80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use crate::model;
#[openapi(
paths(
get_course_options::get_course_options,
term::get_terms,
terms::get_terms,
),
components(
schemas(
Expand Down Expand Up @@ -50,7 +50,7 @@ pub async fn serve() {
App::new().wrap(cors).service(
scope("/api")
.service(get_course_options::get_course_options)
.service(term::get_terms)
.service(terms::get_terms)
.route("/openapi.json", web::get().to(open_api_spec))
.service(
SwaggerUi::new("/docs/{_:.*}").url("/api/openapi.json", ApiDoc::openapi()),
Expand Down

0 comments on commit db8dc80

Please sign in to comment.