Implement ordering process

This commit is contained in:
2024-09-24 15:40:16 +02:00
parent 5b8f1fbead
commit 8329a6ae09
19 changed files with 274 additions and 160 deletions

View File

@@ -20,6 +20,12 @@ app.use(bodyParser.json())
// Create database and tables
startDatabase()
// Add delay for more realistic response times
app.use((req, res, next) => {
console.log(123)
setTimeout(next, Math.floor((Math.random () * 4000) + 100))
})
// Routes
app.use("/api", api)
app.use("/categories", category)