Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
bakaq committed Oct 7, 2024
1 parent 613a59e commit ce658bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/market-helper-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ use axum::{
routing::get,
Json, Router,
};
use tower_http::cors::{Any,CorsLayer};
use serde::{Deserialize, Serialize};
use sqlx::sqlite::{SqliteConnectOptions, SqliteJournalMode};
use sqlx::{ConnectOptions, Row, SqliteConnection};
use tokio::sync::Mutex;
use tower_http::cors::{Any, CorsLayer};

use market_helper_core::{ItemData, ItemDescription, NutritionalTable};
use serde_json::{json, Value};
Expand Down Expand Up @@ -44,7 +44,7 @@ async fn main() -> anyhow::Result<()> {

let app_state = Arc::new(AppState::try_new().await?);
// TODO: Use the right HTTP methods.

let cors = CorsLayer::new()
.allow_methods([Method::GET, Method::POST])
.allow_origin(Any);
Expand Down

0 comments on commit ce658bd

Please sign in to comment.