I would like to know more about that Routes module. Can anyone explain me in brief? Any link or resource suggestions? Thanks!
It is an alias for the autogenerated Phoenix path helpers:
alias Hexpm.Web.Router.Helpers, as: Routes
Here is the relevant documentation: https://hexdocs.pm/phoenix/routing.html#path-helpers
Hi Nicd, thanks for the answer, but I am still not clear with email_url( ) part. Is it the same as email_path( )?
The Phoenix path helpers will create two helpers for each route,
*_path() helper returns the path to the route, like:
*_url() returns the full URL to the route, like:
https://domain.example/foo/bar. The URL can be set in the endpoint config.