쿠폰 자동 입력 사이트 작성
`/api/redeem`과 `/api/redeem-all` 둘 다 등록됐습니다. 이제 어떤 경로로 호출해도 정상 동작합니다. 다시 시도해 보세요.
This commit is contained in:
parent
608a904768
commit
3da1077ea7
@ -17,6 +17,12 @@ export class WosController {
|
|||||||
return this.wosService.redeemAll(body.fid);
|
return this.wosService.redeemAll(body.fid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Post('redeem')
|
||||||
|
@HttpCode(200)
|
||||||
|
async redeem(@Body() body: { fid: string }) {
|
||||||
|
return this.wosService.redeemAll(body.fid);
|
||||||
|
}
|
||||||
|
|
||||||
@Get('users')
|
@Get('users')
|
||||||
async listUsers() {
|
async listUsers() {
|
||||||
return this.wosService.listUsers();
|
return this.wosService.listUsers();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user