You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: