feat: auth

This commit is contained in:
Maulana Sodiqin
2025-03-13 23:40:16 +07:00
parent 298144bd36
commit acfb8259bc
17 changed files with 226 additions and 179 deletions
+5 -1
View File
@@ -4,10 +4,14 @@ pub mod auth_controller;
pub mod auth_dto;
pub mod auth_middleware;
pub mod auth_repository;
pub mod auth_service;
pub use auth_dto::*;
pub use auth_repository::*;
pub use auth_service::*;
pub fn auth_router() -> Router {
Router::new().route("/login", post(auth_controller::post_login))
Router::new()
.route("/login", post(auth_controller::post_login))
.route("/register", post(auth_controller::post_register))
}