rust-api-template/src/api/routes/auth/mod.rs

15 lines
414 B
Rust
Raw Normal View History

2025-01-05 12:57:23 +00:00
use utoipa_axum::{router::OpenApiRouter, routes};
2025-04-05 17:10:55 +00:00
use crate::api::routes::auth::handlers::login_post::{__path_authorize, authorize};
use crate::api::routes::auth::handlers::logout_post::{__path_logout, logout};
2025-01-05 12:57:23 +00:00
2025-04-05 17:10:55 +00:00
mod handlers;
2025-01-05 12:57:23 +00:00
pub mod models;
// expose the OpenAPI to parent module
pub fn router() -> OpenApiRouter {
OpenApiRouter::new()
.routes(routes!(authorize))
.routes(routes!(logout))
}