mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-30 17:32:38 +00:00
trying to catch url with query
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user