feat: docs

This commit is contained in:
Maulana Sodiqin
2025-03-19 20:55:29 +07:00
parent 497c250e6d
commit 11d6249007
5 changed files with 10 additions and 13 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ use axum::{http::HeaderMap, response::IntoResponse, Extension, Json};
#[utoipa::path(
post,
path = "/v1/gacha/create/claim",
path = "/v1/gacha/claims/create",
request_body = GachaCreateClaimRequestDto,
responses(
(status = 200, description = "Create gacha claim successful", body = MessageResponseDto),
@@ -22,7 +22,7 @@ pub async fn post_create_gacha_claim(
#[utoipa::path(
post,
path = "/v1/gacha/create/item",
path = "/v1/gacha/items/create",
request_body = GachaCreateItemRequestDto,
responses(
(status = 200, description = "Create gacha item successful", body = MessageResponseDto),
@@ -39,7 +39,7 @@ pub async fn post_create_gacha_item(
#[utoipa::path(
post,
path = "/v1/gacha/create/roll",
path = "/v1/gacha/rolls/create",
request_body = GachaCreateRollRequestDto,
responses(
(status = 200, description = "Create gacha roll successful", body = MessageResponseDto),
+3 -3
View File
@@ -14,15 +14,15 @@ pub use gacha_service::*;
pub fn gacha_router() -> Router {
Router::new()
.route(
"/create/claim",
"/claims/create",
post(gacha_controller::post_create_gacha_claim),
)
.route(
"/create/item",
"/items/create",
post(gacha_controller::post_create_gacha_item),
)
.route(
"/create/roll",
"/rolls/create",
post(gacha_controller::post_create_gacha_roll),
)
}