2 ms·
> All of your endpoints must now return an html snippet, which is specific to the design of the page. So you have a lot of page specific endpoints. This is ok,
by flukus 6y ago
> All of your endpoints must now return an html snippet, which is specific to the design of the page. So you have a lot of page specific endpoints.
This is ok, adding an endpoint to spit out html is super simple, it's just printf statements with angle brackets.
Beside that I find endpoints need to be somewhat coupled to the UI anyway, otherwise the endpoint needs to be a superset of all possible data and all the complications that come with that.