Skip to content
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

I would like to ask, how to write static resources in the routing #72

Closed
shove70 opened this issue May 1, 2017 · 4 comments
Closed

Comments

@shove70
Copy link
Contributor

shove70 commented May 1, 2017

such as:GET /public/* staticDir:resources

@viile
Copy link
Contributor

viile commented May 1, 2017

in actual fact,we use nginx to process static resources,so this feature is not supported at this time

@shove70 shove70 closed this as completed May 2, 2017
@zoujiaqing
Copy link
Member

zoujiaqing commented May 2, 2017

You can use this route and create an Action:

GET    /public/<filename:.*>    core.staticfile

in this Action read file & output.

@shove70
Copy link
Contributor Author

shove70 commented May 3, 2017

No, in the hunt source does not see this feature support, core.staticfile Action code does not exist. I have finished writing this feature and just submitted a pull request that is waiting for the merge code.


GET                        /public                                staticDir:public

@shove70 shove70 reopened this May 3, 2017
@shove70
Copy link
Contributor Author

shove70 commented May 3, 2017

@zoujiaqing, I know, thanks

@shove70 shove70 closed this as completed May 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants