diff --git a/server.js b/server.js index 7ad0171..3d0024b 100644 --- a/server.js +++ b/server.js @@ -174,6 +174,9 @@ app.delete('/api/oops/:id', async (req, res) => { } }); +// Redirect /work/ to first case study (matches old nginx behaviour) +app.get('/work/', (req, res) => res.redirect(301, '/work/charityright/')); + // Serve static files from html/ directory app.use(express.static(path.join(__dirname, 'html')));