Interesting, but do I understand correctly that:

- this would mostly work if the sole consumer of your API is the frontend, since it returns HTML, rather than, eg JSON that would be consumed by a CLI, some streaming tools, clients, etc

- this would not really be suited to some Capacitor app?

Yeah it assumes your building a full stack app driven by the backend. So the client and backend are tightly coupled and built for each other.