edited api docs

This commit is contained in:
2025-11-17 22:55:23 +01:00
parent a191c9c053
commit c5a9a09ef3
2 changed files with 8 additions and 18 deletions

View File

@@ -88,14 +88,4 @@ router.post(
}
);
// Route for API to get ALL items from the database (only for landingpage)
router.get("/all-items", async (req, res) => {
const result = await getItemsFromDatabaseV2();
if (result.success) {
res.status(200).json(result.data);
} else {
res.status(500).json({ message: "Failed to fetch items" });
}
});
export default router;