finished frontend

This commit is contained in:
2025-06-09 22:54:45 +02:00
parent 08477e6e1b
commit 6f06b0869e
4 changed files with 18 additions and 16 deletions

14
backend/routes/recipes.js Normal file
View File

@@ -0,0 +1,14 @@
const express = require("express");
const router = express.Router();
router.get("/", (req, res) => {
res.send("Enter a recipe name in the url!");
});
router.get("/:id", (req, res) => {
res.sendFile(
`/Gitea_Dus1_REPOS/Cookbook/backend/database/recipes/${req.params.id}.json`
);
});
module.exports = router;