From d88abefa9af51d7af6df5800bb73cbabf2d52261 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sun, 2 Oct 2022 20:53:48 +0200 Subject: [PATCH] fixed main --- como_bff/src/main.rs | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) 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