moved directory

This commit is contained in:
2025-06-17 21:39:55 +02:00
parent fe02505cc6
commit 42a2d9ed85
895 changed files with 2 additions and 2 deletions

15
routes/recipes.js Normal file
View File

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