diff --git a/src/pow/pow.controller.ts b/src/pow/pow.controller.ts index da27fbf..6025148 100644 --- a/src/pow/pow.controller.ts +++ b/src/pow/pow.controller.ts @@ -21,4 +21,10 @@ export class PowController { return this.powService.verifyChallenge(body.challenge, body.proof); } + @Post('challenge/complete') + @ApiBody({ schema: { properties: { challenge: { type: 'string' } } } }) + async markChallengeAsComplete(@Body() body: { challenge: string }) { + return this.powService.markChallengeAsComplete(body.challenge); + } + }