4 ms·RESTful API and a Web Site in the Same URL2 points by edmoffo 12y agoanonfunction 12y agoYou could easily do the same by using the HTTP accept header. "Accept: application/json" returns the json API "Accept: text/html" returns the website