diff --git a/como_bff/src/main.rs b/como_bff/src/main.rs index 327b666..6813b6c 100644 --- a/como_bff/src/main.rs +++ b/como_bff/src/main.rs @@ -1,34 +1,9 @@ -use std::env::{self, current_dir}; - -use async_graphql_axum::{GraphQLRequest, GraphQLResponse}; -use axum::{ - extract::Extension, - http::{Method, StatusCode}, - response::{Html, IntoResponse}, - routing::{get, post}, - Json, Router, -}; -use axum_extra::extract::{cookie::Key, PrivateCookieJar}; - -use async_graphql::{ - http::{playground_source, GraphQLPlaygroundConfig}, - EmptySubscription, Request, Response, Schema, -}; -use axum_sessions::{ - async_session::MemoryStore, - extractors::{ReadableSession, WritableSession}, - SessionLayer, -}; -use error::AppError; -use graphql::CibusSchema; -use serde::{Deserialize, Serialize}; -use serde_json::{json, Value}; -use services::users_service; +use axum::{extract::Extension, http::Method, Router}; use sqlx::PgPool; +use std::env::{self, current_dir}; use tower_http::{cors::CorsLayer, trace::TraceLayer}; use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt}; -use crate::graphql::{MutationRoot, QueryRoot}; #[tokio::main] async fn main() -> anyhow::Result<()> { // Environment