Fixed issue with matching wild card

This commit is contained in:
2026-07-10 00:13:40 -04:00
parent 655aeb47a2
commit 56c2fb1a5c
6 changed files with 62 additions and 2 deletions
+13
View File
@@ -52,6 +52,19 @@ router.get('/lookupobj', async function(req, res, next){
}
});
router.delete('/cache', async function(req, res, next){
try{
let count = await Model.clearCache();
return res.json({
message: `Cleared ${count} cached host${count === 1 ? '' : 's'}.`,
count,
});
}catch(error){
return next(error);
}
});
router.get('/:item', async function(req, res, next){
try{