main
Deploy Iddaai Backend / build-and-deploy (push) Successful in 2m42s

This commit is contained in:
2026-04-26 03:07:18 +03:00
parent 1623432039
commit a338d02244
20 changed files with 818 additions and 160 deletions
@@ -56,6 +56,11 @@ export class PredictionsController {
*/
@Get("test/:id")
@ApiOperation({ summary: "Refetch match data and get prediction" })
@ApiResponse({
status: 200,
description: "Prediction details",
schema: { type: "object" },
})
@ApiParam({ name: "id", description: "Match ID" })
async getTestPrediction(@Param("id") id: string) {
return this.predictionsService.testPrediction(id);
@@ -91,7 +96,12 @@ export class PredictionsController {
@Public()
@ApiOperation({ summary: "Get prediction for a specific match" })
@ApiParam({ name: "matchId", description: "Match ID" })
@ApiResponse({ status: 200, type: MatchPredictionDto })
@ApiResponse({
status: 200,
description: "Match prediction",
schema: { type: "object" },
type: MatchPredictionDto,
})
@ApiResponse({ status: 404, description: "Match not found" })
async getPrediction(
@Param("matchId") matchId: string,
@@ -145,6 +155,7 @@ export class PredictionsController {
@ApiResponse({
status: 200,
description: "Smart coupon generated successfully",
schema: { type: "object" },
})
async generateSmartCoupon(@Body() dto: SmartCouponRequestDto): Promise<any> {
const coupon = await this.predictionsService.getSmartCoupon(