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

How to tell apart html page request vs API fetch #64

Open
Noam-Bendelac opened this issue Dec 26, 2020 · 0 comments
Open

How to tell apart html page request vs API fetch #64

Noam-Bendelac opened this issue Dec 26, 2020 · 0 comments
Labels
backend Backend functionality implementation Possible implementation idea to keep in mind low-priority May not be worked on

Comments

@Noam-Bendelac
Copy link
Collaborator

If I ever want to tell apart an html page request from a JSON API request for something like serving the SPA for /* or an admin page for /admin/*, I can use this. Not sure I'd want to do this anymore though, especially since the SPA works fine if it's put after the /api/ routes.

@Noam-Bendelac Noam-Bendelac added low-priority May not be worked on implementation Possible implementation idea to keep in mind backend Backend functionality labels Dec 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend functionality implementation Possible implementation idea to keep in mind low-priority May not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant