Sharing Functions Between Phoenix Controllers
The post explains how Phoenix controllers share imports through web/web.ex, how use MyApp.Web, :controller expands __using__/3, and how adding an import there makes helper functions available to all controllers.