How to tell apart html page request vs API fetch #64
Labels
backend
Backend functionality
implementation
Possible implementation idea to keep in mind
low-priority
May not be worked on
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.The text was updated successfully, but these errors were encountered: