3 ms·
You could easily do the same by using the HTTP accept header. "Accept: application/json" returns the json API "Accept: text/html" returns the website
by anonfunction 12y ago
You could easily do the same by using the HTTP accept header.
"Accept: application/json" returns the json API
"Accept: text/html" returns the website