diff options
| author | Santo Cariotti <santo@dcariotti.me> | 2022-10-17 20:08:09 +0000 |
|---|---|---|
| committer | Santo Cariotti <santo@dcariotti.me> | 2022-10-17 20:08:09 +0000 |
| commit | 74976dab57887a4d7e29b426cdf7422722fa58ee (patch) | |
| tree | 5f1bbed3dbcf3ba520866cb4eb060aaf5a771915 /src/main.rs | |
| parent | 611293122213f83e82d851cd8dc83fd1e4f79dcd (diff) | |
Refactoring of mods
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/main.rs b/src/main.rs index 19003f3..369b555 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,12 +1,16 @@ +mod auth; mod config; mod db; mod errors; mod files; mod json; +mod likes; mod logger; -mod models; +mod model; mod pagination; mod routes; +mod user; +mod warning; use crate::config::{CONFIG, SENTRY}; use axum::{ @@ -57,10 +61,10 @@ async fn create_app() -> Router { let _ = db::setup().await; let api_routes = Router::new() - .nest("/users", routes::user::create_route()) - .nest("/auth", routes::auth::create_route()) - .nest("/models", routes::model::create_route()) - .nest("/warnings", routes::warning::create_route()); + .nest("/users", user::routes::create_route()) + .nest("/auth", auth::routes::create_route()) + .nest("/models", model::routes::create_route()) + .nest("/warnings", warning::routes::create_route()); Router::new() .route( |
