-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposal: dir index #135
Comments
Would you like to send a Pull Request to implement this feature? Remember to add unit tests. |
Sure, I just wanted to check if the feature makes sense |
I thought about implementing it for a while! :) |
Put it behind an option. |
I made the PR #137 I changed some names from this proposal, the No need to say, feel free to change anything you like, but please note I get 100% coverage on |
🚀 Feature Proposal
I'd like to implement a feature to get the "index" of the directory, if the request is the dir root or "index" or "index.html" - all of that optional and configurable. Output format can be json or html; for html a string for template is required.
Next improvement could optionally add files stats to output
Motivation
Can be useful to have an index for dir navigation or to quickly expose files
Example
A draft example could be
json
request
GET .../public/images
orGET .../public/images/index.json
response
html
request
GET .../public/images
orGET .../public/images/index.html
response
The text was updated successfully, but these errors were encountered: