generate code
This commit is contained in:
@@ -95,5 +95,10 @@ export class CouponController {
|
||||
validateCouponDto.userId,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@Get('public/coupons/generate-code')
|
||||
@ApiOperation({ summary: 'generate a coupon code' })
|
||||
generateCouponCode(@RestId() restId: string) {
|
||||
return this.couponService.generateCouponCode(restId);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user