Files
imphnen-backend-service/imphnen-gacha/src/v1/gacha_rolls/mod.rs
T

27 lines
689 B
Rust
Raw Normal View History

use axum::{
Router,
routing::{get, post},
};
2025-05-22 00:31:36 +07:00
pub mod gacha_rolls_controller;
pub mod gacha_rolls_dto;
pub mod gacha_rolls_repository;
pub mod gacha_rolls_schema;
pub mod gacha_rolls_service;
// Export only public API functions and types
pub use gacha_rolls_controller::{
post_create_gacha_roll,
post_execute_gacha_roll,
get_detail_gacha_roll,
2025-05-22 00:31:36 +07:00
};
pub use gacha_rolls_dto::GachaRollItemDto;
2025-05-22 00:31:36 +07:00
/// Creates router for gacha rolls endpoints
2025-05-22 00:31:36 +07:00
pub fn gacha_roll_router() -> Router {
Router::new()
.route("/create", post(post_create_gacha_roll))
.route("/execute", post(post_execute_gacha_roll))
.route("/detail/{id}", get(get_detail_gacha_roll))
2025-05-22 00:31:36 +07:00
}