-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix & refactor server routing + add tests (#799)
* Fix bad routing regex for sitemap & feed * add tests for sitemap & feed * use next middleware function if file nto found * add pages routing & test * refactor + add more test for page routing * extension-less url routing + test * refactor out requestFile * add dot routing + test to handle special case like http://localhost:3000/blog/2018/05/27/1.13.0 * exit properly * add more test for sitemap * update nits from my phone
- Loading branch information
Showing
3 changed files
with
229 additions
and
35 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
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