Skip to content

static: Added directory representation #46

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

Merged
merged 1 commit into from
Feb 5, 2018

Conversation

notzippy
Copy link
Contributor

@notzippy notzippy commented Jul 27, 2017

Add the following routes, public folder is now like a ftp server, you need the second redirect because an empty request to /public or /public/ will not match /public/*filepath

*     /static                                 module:static
GET     /public/*filepath                       Static.ServeDir("public")
GET     /public                                 Static.ServeDir("public")

image

@brendensoares
Copy link
Member

Size: 0 should be hidden for folders? This should be disabled by default in prod, yes?

…rectory exploration with as long as the result path returns to current folder)
@notzippy notzippy merged commit d491564 into revel:develop Feb 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants