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

returning js css image files #68

Open
rutlang opened this issue May 21, 2015 · 1 comment
Open

returning js css image files #68

rutlang opened this issue May 21, 2015 · 1 comment

Comments

@rutlang
Copy link

rutlang commented May 21, 2015

how do you return external files (js, css, images)?

@acron0
Copy link
Contributor

acron0 commented May 21, 2015

In essence, crude static file serving is just reading the file from the file system, setting the appropriate headers/mime-types and sending it as a response.

Alternatively, if you're using crow behind a reverse proxy (such as nginix) then you could use that for serving statics.

I might throw up a middleware example onto the crow-contrib.

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

2 participants