Hacker News new | ask | show | jobs
by egeozcan 1099 days ago
But many already have API endpoints because you have to serve native apps too.

My question was, does LiveView also help you in a Backend-for-Frontend case?

2 comments

He did kinda answer your question with: "I ended up removing a lot of controllers from my codebase that was there just to service the react front-end. Having those controllers do not service as the "API" of the app. Specs for front-end apis and core APIs are usually quite different based on my experience"
This is why I'm eagerly waiting for LiveView Native. That will remove the need for front-end APIs entirely.
Oh that's interesting. It won't need to remove the need for APIs (there are scripts and other clients, like embedded, that LiveView will likely not support) but cool.