New Server Version

This commit is contained in:
Marc Wieland 2025-04-25 15:25:25 +02:00
parent 6b455f9795
commit d7aaf27d53

View File

@ -22,7 +22,7 @@ app.use(cors({
})); }));
app.use(express.json()); app.use(express.json());
app.use('uploads/', express.static('uploads')); app.use('/uploads', express.static(path.join(__dirname, 'uploads')));
// PostgreSQL Verbindung aufbauen // PostgreSQL Verbindung aufbauen
@ -209,7 +209,7 @@ app.get("/api/users", async (req, res) => {
} }
}); });
// Benutzer lÃloeschen // Benutzer l<EFBFBD>loeschen
app.delete("/api/users/:id", async (req, res) => { app.delete("/api/users/:id", async (req, res) => {
const { id } = req.params; const { id } = req.params;