chore: setup libs and utils
This commit is contained in:
@@ -1,2 +1,10 @@
|
||||
use axum::{routing::get, Router};
|
||||
|
||||
pub mod v1;
|
||||
pub mod v2;
|
||||
|
||||
pub async fn apps() -> Router {
|
||||
let v1_routes = Router::new().route("/", get(|| async { "Comming Soon v1" }));
|
||||
let v2_routes = Router::new().route("/", get(|| async { "Comming Soon v2" }));
|
||||
Router::new().nest("/v1", v1_routes).nest("/v2", v2_routes)
|
||||
}
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
pub mod auth_controller;
|
||||
pub mod auth_dto;
|
||||
pub mod auth_middleware;
|
||||
pub mod auth_model;
|
||||
pub mod auth_repository;
|
||||
|
||||
pub use auth_controller::*;
|
||||
pub use auth_middleware::*;
|
||||
pub use auth_model::*;
|
||||
pub use auth_repository::*;
|
||||
|
||||
Reference in New Issue
Block a user