Prevention of flooding keys with signatures

Manage unusual signatures.
This commit is contained in:
Simon Vareille
2020-06-12 21:21:29 +02:00
parent 2496094432
commit 4a5b8cc003
6 changed files with 192 additions and 36 deletions

View File

@@ -62,7 +62,7 @@ router.get('/manage.html', ctx => ctx.render('manage'));
// HKP and REST api routes
router.post('/pks/add', ctx => hkp.add(ctx));
router.get('/pks/lookup', ctx => hkp.lookup(ctx));
router.post('/api/v1/key', ctx => rest.create(ctx));
router.post('/api/v1/key', ctx => rest.postHandler(ctx));
router.get('/api/v1/key', ctx => rest.query(ctx));
router.del('/api/v1/key', ctx => rest.remove(ctx));