changed for exe

This commit is contained in:
2025-06-10 21:26:38 +02:00
parent 1d3dd734dc
commit 05ecb42de6
5 changed files with 5 additions and 8 deletions

View File

@@ -12,7 +12,6 @@ app.get("/add", (req, res) => {
});
app.get("/", (req, res) => {
// script to sync recipes
const recipesFolder = path.join(__dirname, "database/recipes");
fs.readdir(recipesFolder, (err, files) => {
@@ -34,7 +33,6 @@ app.get("/", (req, res) => {
});
// script to render in markdown
});
// middleware for add recipe
@@ -46,12 +44,10 @@ app.post("/add/create-recipe", (req, res) => {
const { filename, content } = req.body;
const directory = path.join(__dirname, "database/recipes");
// left out if statement for directory check
/*
if (!fs.existsSync(directory)) {
fs.mkdirSync(directory);
}
*/
const filePath = path.join(directory, `${filename}.txt`);