From af35fd2017265b53f89af3f5f3abcb8499508aed Mon Sep 17 00:00:00 2001 From: kdeng00 Date: Thu, 9 Oct 2025 21:30:28 -0400 Subject: [PATCH] Changed port --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 0146e3c..2b41286 100644 --- a/src/main.rs +++ b/src/main.rs @@ -280,11 +280,14 @@ pub mod init { // TODO: Look into handling this. Seems redundant to run migrations multiple times crate::db::migrations(&pool).await; + let cors = cors::configure_cors().await; + /* let cors = tower_http::cors::CorsLayer::new() .allow_origin("http://localhost:3000".parse::().unwrap()) .allow_methods([Method::GET, Method::POST, Method::PATCH, Method::DELETE]) .allow_credentials(true) .allow_headers([AUTHORIZATION, ACCEPT, CONTENT_TYPE]); + */ routes() .await @@ -310,7 +313,7 @@ fn get_address() -> String { // TODO: Move elsewhere fn get_port() -> String { - String::from("3000") + String::from("8000") } // TODO: Move elsewhere