How to generate directory indices for all folders?
Opened this issue · 0 comments
nickelswitte commented
Thanks for this nice project.
I am able to use this project well, but I wanted to ask how I can serve all folders, without revealing the root directory.
I know that with this command, I can index one folder:
app.use('/sub', express.static('static/sub'), serveIndex('static/sub', {'icons': true, 'view': 'details'}))
I know that with this command I can index the root directory and therefor all static content:
app.use('/', express.static('static/'), serveIndex('static/', {'icons': true, 'view': 'details'}))
But is there a way to generate an index for all folders, without revealing the root directory?
Thanks for the help,
Cheers!