Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

API routes should never serve home page as html. #2284

Merged
merged 1 commit into from
Jul 24, 2018
Merged

API routes should never serve home page as html. #2284

merged 1 commit into from
Jul 24, 2018

Conversation

captncraig
Copy link
Contributor

anything under /api will 404 now if not matched another route.

Should fix a couple of crazy cases where html is returned to api routes, and shenanigans result.

Also a few encodeuricomponent calls needed in the front-end.

@captncraig captncraig merged commit 2c398c6 into master Jul 24, 2018
@kylebrandt kylebrandt deleted the api404 branch January 17, 2019 17:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant