Hello, I'm developing a common system with ROR and it has a structure not just an API, it has its views and everything.
The question is that I'll also build an API to serve it for a mobile app and when I go about it I'll just find people explaining how to build an app just like api through the parameter:
rails new [my-app] --api
But in this way the application needs different settings and is much leaner than the normal application. I would use the following approach, follow a normal application and create a route group to serve the API, with authentication and everything.
How do I do this?