Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add JSON responses Return HTML or JSON , with the format chosen to match the request accept header. Additionally, rewrite requests with URLs that end in ".json" to their equivalent document without an extensnion but with the appropriate accept header to receive a JSON response. * Update tests * Update server/routes/pages.js Co-authored-by: Isaac White <isaacwhite@users.noreply.github.com> Co-authored-by: SMores <shane@shanemoore.me> Co-authored-by: SMores <5354254+SMores@users.noreply.github.com> Co-authored-by: Isaac White <isaacwhite@users.noreply.github.com>
- Loading branch information
1 parent
4034367
commit b7b068a
Showing
6 changed files
with
144 additions
and
15 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
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