mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-23 03:33:53 +00:00
refactor(server): Explicitly disable index serving in express.static
This commit is contained in:
+1
-1
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user