Skip to content

How to generate directory indices for all folders? #106

@nickelswitte

Description

@nickelswitte

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions