For Single Page Application cases it would make a lot of sense to be able to generate the endpoint results from twig and/or controller actions.
That way you can prepopulate the initial page load with the same content you would as if you navigate to that page with an ajax request.
In a sense, a sort of 'server rendering' (but not really).
Perhaps this is already possible somehow? In that case, an example in the documentation would go a long way.
For Single Page Application cases it would make a lot of sense to be able to generate the endpoint results from twig and/or controller actions.
That way you can prepopulate the initial page load with the same content you would as if you navigate to that page with an ajax request.
In a sense, a sort of 'server rendering' (but not really).
Perhaps this is already possible somehow? In that case, an example in the documentation would go a long way.