diff options
| author | Emmanuel Gaillot <emmanuel.gaillot@gmail.com> | 2025-12-20 22:08:25 +0100 |
|---|---|---|
| committer | Emmanuel Gaillot <emmanuel.gaillot@gmail.com> | 2025-12-20 22:08:25 +0100 |
| commit | 1b1877e3328170fe839d2f8ca4d108ec2b0a0454 (patch) | |
| tree | f06e7134790cb71e9a417ec4a5b2747493220fa4 /lambda-calcul/javascript/src/client.js | |
| parent | 37d26e407f903e87bbf4c247c8385b662319b620 (diff) | |
| download | lambda-nantes-1b1877e3328170fe839d2f8ca4d108ec2b0a0454.tar.gz | |
Unregister user
Diffstat (limited to 'lambda-calcul/javascript/src/client.js')
| -rw-r--r-- | lambda-calcul/javascript/src/client.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lambda-calcul/javascript/src/client.js b/lambda-calcul/javascript/src/client.js index 88ea253..08b967d 100644 --- a/lambda-calcul/javascript/src/client.js +++ b/lambda-calcul/javascript/src/client.js @@ -30,10 +30,16 @@ const newClient = ({ }) .then(({ data }) => data); + const unregister = (token) => axios({ + method: 'DELETE', + url: `${challengerURL}/api/register?token=${token}`, + }); + return { nextChallenge, solve, start, + unregister, }; }; |
