Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
tonitert committed Aug 15, 2024
1 parent c2c3db8 commit aa1aac5
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ use axum::{
routing::{get, post},
Router,
};
use tower_http::{limit::RequestBodyLimitLayer, trace::TraceLayer, cors::CorsLayer};
use tower_http::{cors::CorsLayer, limit::RequestBodyLimitLayer, trace::TraceLayer};

pub mod invoices;

pub fn app() -> Router<crate::state::State> {
let cors_layer = CorsLayer::new()
.allow_origin([
"https://tietokilta.fi".parse().unwrap(),
"http://localhost:3000".parse().unwrap(),
]);
let cors_layer = CorsLayer::new().allow_origin([
"https://tietokilta.fi".parse().unwrap(),
"http://localhost:3000".parse().unwrap(),
]);

Router::new()
.route("/health", get(health))
Expand Down

0 comments on commit aa1aac5

Please sign in to comment.