stop server caching

This commit is contained in:
chris 2025-08-02 07:42:51 -04:00
parent 9480449b72
commit 29326699de

View File

@ -34,6 +34,10 @@ async function startServer() {
console.log("Connected to the SQLite database.");
await initializeDatabase();
app.use('/api', (req, res, next) => {
res.set('Cache-Control', 'no-store');
next();
});
setupRoutes();
app.listen(PORT, () => console.log(`Server running on http://localhost:${PORT}`));