refactor(server): Explicitly disable index serving in express.static

This commit is contained in:
courtmanr@gmail.com
2025-04-24 23:02:15 +01:00
parent 8af4121656
commit a06f883ebb
+1 -1
View File
@@ -450,7 +450,7 @@ app.use(express.json());
const publicDir = path.join(__dirname, '../src/public');
// Serve static files (CSS, JS, images) from the public directory
app.use(express.static(publicDir));
app.use(express.static(publicDir, { index: false }));
// Route to serve the main HTML file for the root path
app.get('/', (req, res) => {