Skip to content

Commit

Permalink
cursed
Browse files Browse the repository at this point in the history
  • Loading branch information
JieningYu committed Mar 28, 2024
1 parent 511221b commit 5e82395
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ async fn main() {
};

let router: Router<()> = Router::new()
.layer(CorsLayer::permissive())
.route("/questions/new", post(question::new::<FsHandle>))
.route("/paper/post", post(paper::post::<FsHandle>))
.route("/paper/get", get(paper::get::<FsHandle>))
Expand All @@ -107,7 +106,8 @@ async fn main() {
&format!("/{}/{}", config.mng_secret, config.mng_reject_papers_secret),
post(paper::reject::<FsHandle>),
)
.with_state(state.clone());
.with_state(state.clone())
.layer(CorsLayer::very_permissive());

tokio::spawn(dmds_tokio_fs::daemon(
state.papers.clone(),
Expand Down

0 comments on commit 5e82395

Please sign in to comment.