forked from nextstrain/nextstrain.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move static handlers for Auspice and Gatsby into endpoints/static
Better separation of concerns here. Note that instead of using the "fallthrough" option to expressStaticGzip (which passes it thru to express.static, which passes it thru to serve-static), I stack an "always 404" handler after the static handler. Otherwise, the fallthrough behaviour would be non-obvious and baffling to anyone reading app.js. Falling through is part of the routing, which belongs solely in app.js, while how to serve the assets is part of the endpoint.
- Loading branch information
Showing
2 changed files
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters