Should separate controllers be used to render HTML and JSON results for same entity types?

mix phx.gen.html Accounts User users name:string

mix phx.gen.json Accounts User users name:string --web api --no-schema --no-context