Hi, i have a phoenix 1.3 website. I want add api for the mobile app.
What are the best pratices for add these?
is better create a subfolder “api” in
lib/myapp_web/controllers
or create the filelib/myapp_api.ex
and the folder lib/myapp_api/
?
Is there any documentation of this?
Thanks
I would put them under lib/myapp_web/controllers as they are controllers. But I would also prefer graphql over rest api as it acts as the main entry point of your api.
And now that the Absinthe book is out, it is a good reason to give it a try 
2 Likes
Hello @romaluca! Did you solve the problem eventually? How?