feat: docs
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user