Add ability to mark PoW complete
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user