0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-30 15:22:41 +00:00

trying to catch url with query

This commit is contained in:
Víctor Losada Hernández
2024-01-23 14:02:27 +01:00
parent 54a2f6940c
commit 162929bdca
3 changed files with 33 additions and 4 deletions

View File

@@ -17,7 +17,6 @@ const archive = {
// No published documents found with the given title
return res.status(404).json({ error: 'Published documents not found' });
}
return res.json(brews);
} catch (error) {
console.error(error);
@@ -28,4 +27,4 @@ const archive = {
router.get('/archive/:query', asyncHandler(archive.findBrews));
module.exports = archive;
module.exports = router;