News for hackers. Stuff that matters.
Re:The Aha Stack by hannofcart on Wednesday January 03, 2024 @12:33PM (#38856887)
The way around this is to have a layered approach in the backend. A business logic layer which generates some data, presumably structured in whatever way is canonical for the language you use.

Then add a layer on top of that that 'renders' the same structure into multiple formats: JSON or HTML as needed.

Expose each of these view layers as a different endpoint in your service.

There are no comments on this comment yet.