an API is an abstraction. you can do away with that if you generate html in the backend
You can still and should have an API but it will be an internal one(in-process, not at the network boundary).
You can still and should have an API but it will be an internal one(in-process, not at the network boundary).
The code inside the API is an abstraction.