stricted rate limiting for /getuserinvoices
This commit is contained in:
parent
7b5c6bc7e0
commit
b58e7dac88
@ -329,7 +329,7 @@ router.get('/gettxs', async function(req, res) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
router.get('/getuserinvoices', async function(req, res) {
|
router.get('/getuserinvoices', postLimiter, async function(req, res) {
|
||||||
logger.log('/getuserinvoices', [req.id]);
|
logger.log('/getuserinvoices', [req.id]);
|
||||||
let u = new User(redis, bitcoinclient, lightning);
|
let u = new User(redis, bitcoinclient, lightning);
|
||||||
if (!(await u.loadByAuthorization(req.headers.authorization))) {
|
if (!(await u.loadByAuthorization(req.headers.authorization))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user