Skip to content

Commit

Permalink
feat: shared folder
Browse files Browse the repository at this point in the history
  • Loading branch information
William Karkegi committed Nov 22, 2023
1 parent 1cae9a3 commit cff93dd
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,23 +1,17 @@
use std::{env, net::SocketAddr};

use app_state::AppState;
use axum::{
middleware,
response::{IntoResponse, Response},
Json, Router, Server,
};
use db::DB;
use dotenv::dotenv;
use error::Error;
use serde_json::json;
use tracing::{debug, info};

mod app_state;
mod ctx;
mod db;
mod error;
mod shared;

use crate::error::Result;
use crate::shared::{app_state::AppState, db::DB, error::Error, error::Result};

#[tokio::main]
async fn main() -> Result<()> {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 4 additions & 0 deletions src/shared/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
pub mod app_state;
pub mod ctx;
pub mod db;
pub mod error;

0 comments on commit cff93dd

Please sign in to comment.