Currently, I am using Express to serve my static Linux files and folders. Despite not encountering any issues with my code, I would like to provide it for additional clarity
const express = require('express');
var serveIndex = require('serve-index');
const app = express();
var __dirname = "/media/user/"
app.use('/data', serveIndex(__dirname));
app.use ("/data", express.static(__dirname))
app.listen(3000, () => {
console.log ("server listening at port 3000")
})
However, my main concern lies in customizing the CSS styles (specifically altering font color, file size display, etc) on the page displayed when accessing the localhost:300/data URL. The current response from the Express server looks like this: