feat: auth login

This commit is contained in:
Maulana Sodiqin
2025-02-08 00:58:54 +07:00
parent c637a356eb
commit ffc72367d5
6 changed files with 44 additions and 3 deletions
+8 -3
View File
@@ -1,10 +1,15 @@
use axum::{routing::get, Router};
use v1::auth_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)
let v1_routes = Router::new()
.nest("/auth", auth_router())
.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)
}