Skip to content

Commit

Permalink
Add a type to layer
Browse files Browse the repository at this point in the history
  • Loading branch information
shaedrich committed May 31, 2024
1 parent 570f0b5 commit e34dff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::net::SocketAddr;
use http::HeaderValue;
use tower_http::cors::CorsLayer;

const layer = CorsLayer::new().allow_origin(
const layer: CorsLayer = CorsLayer::new().allow_origin(
"https://tutorial.ponylang.io".parse::<HeaderValue>().unwrap(),
);

Expand Down

0 comments on commit e34dff7

Please sign in to comment.