Moving image source from web to backend

This commit is contained in:
2024-09-10 16:45:49 +02:00
parent f10c0ef4e9
commit 767269a7cf
13 changed files with 29 additions and 14 deletions

View File

@@ -29,6 +29,10 @@ app.use("/orders", order)
app.use("/ordereditems", orderedItem)
app.use("/accounts", account)
// Static files
const path = require('path')
app.use('/static', express.static(path.join(__dirname, 'images')))
// Start server
app.listen(port, () => {
console.log(`Server is running and listening to port ${port}`)