async fn get_code_giveaway_by_id(
pool: Data<PgPool>,
id: Path<Uuid>,
user: AuthUser,
) -> ControllerResult<Json<CodeGiveaway>>
Expand description
- GET `/api/v0/main-frontend/code-giveaways/:id - Gets a code giveaway by ID.
async fn get_code_giveaway_by_id(
pool: Data<PgPool>,
id: Path<Uuid>,
user: AuthUser,
) -> ControllerResult<Json<CodeGiveaway>>