Loading feedback with indeterminate circle

This commit is contained in:
2024-10-03 20:19:03 +02:00
parent c611cc04fc
commit ed4fa90f75
4 changed files with 21 additions and 7 deletions

View File

@@ -29,9 +29,9 @@ const path = require('path')
app.use('/static', express.static(path.join(__dirname, 'images')))
// Add delay for more realistic response times
// app.use((req, res, next) => {
// setTimeout(next, Math.floor((Math.random () * 4000) + 100))
// })
app.use((req, res, next) => {
setTimeout(next, Math.floor((Math.random () * 4000) + 100))
})
// Routes
app.use("/api", api)