I’ve got a design question for you guys. I’m building a service in Elixir which requires inputs from users (a web interface) and also sends and receives JSON requests from third-party APIs (webhooks). We want this service available to users through a website and mobile app. Phoenix seems to be the natural choice for the former with it’s browser and api pipelines. However, when interfacing with a mobile app, it seems like creating a RESTful API using Plug is most suitable. My question: is it necessary to build a Phoenix web framework and Plug API separately with redundant functionality, or just build a RESTful API in Plug, or is there a better way to accomplish both?
Thanks!






















