Last active
April 30, 2017 09:57
-
-
Save sobolevn/7248333c17c5eba84a4dba23c54d8dec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule MediumPhxExample.Web do | |
def controller do | |
quote do | |
use Phoenix.Controller, namespace: MediumPhxExample.Web | |
import Plug.Conn | |
# Before 1.3 it was just: | |
# import MediumPhxExample.Router.Helpers | |
import MediumPhxExample.Web.Router.Helpers | |
import MediumPhxExample.Web.Gettext | |
end | |
end | |
# Some extra code: | |
# ... | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment