Skip to content

Commit

Permalink
fixup: cors fix on auth routes
Browse files Browse the repository at this point in the history
  • Loading branch information
rootCircle committed Dec 2, 2023
1 parent c9c5c62 commit fa41349
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ async fn axum(#[shuttle_persist::Persist] persist: PersistInstance) -> shuttle_a
.route("/health", get(api_health))
.route("/compile", post(controllers::compile_code::compile_code))
.route("/quiz", post(controllers::compile_code::take_quiz))
.merge(auth_routes(persist));
.merge(auth_routes(persist))
.layer(cors.clone());

let router = Router::new().nest("/api", api_router).layer(cors);

Expand Down

0 comments on commit fa41349

Please sign in to comment.