Add ability to mark PoW complete

This commit is contained in:
2024-04-02 16:46:01 -06:00
parent 8b25ba39b8
commit 2eed36bdd7

View File

@@ -21,4 +21,10 @@ export class PowController {
return this.powService.verifyChallenge(body.challenge, body.proof); 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);
}
} }