New Server Version
This commit is contained in:
parent
6b455f9795
commit
d7aaf27d53
4
index.js
4
index.js
@ -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;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user