4 ms·
But for that the web client wii have to be an SPA? I want to create a simple old-fashioned(request-response/GET-POST type of server-side rendered) web app. Henc
by _448 5y ago
But for that the web client wii have to be an SPA? I want to create a simple old-fashioned(request-response/GET-POST type of server-side rendered) web app. Hence there is a common internal API, and the client facing interface is different for web app and native mobile app. For web app the response is the server-rendered web page, but for the mobile app the response is JSON.
- dusted 5y agono it does not, your php/node/perl/rails/whatever server-side rendering code can call exactly the same api as your native mobile app, assuming it runs on the same server, it could just call it at localhost/api/ instead of domain/api, or if the server can resolve the domain to a local address, even at domain/api