Permalink
Browse files

Update endpoint section in README to reflect Phoenix 1.4 changes

  • Loading branch information...
geolessel committed Jan 3, 2019
1 parent 9c1fbe3 commit c6a9efb4b419a92c626fabfa8d1d4fa7003e2cc2
Showing with 5 additions and 3 deletions.
  1. +5 −3 README.md
@@ -125,15 +125,17 @@ into your `lib/APPNAME_web.ex` views section. It might look like this:
```elixir
def view do
quote do
use Phoenix.View, root: "web/templates"
use Phoenix.View,
root: "web/templates",
namespace: MyPhoenixApp
import Phoenix.Controller, only: [get_csrf_token: 0, get_flash: 2, view_module: 1]
import Phoenix.Controller, only: [get_flash: 1, get_flash: 2, view_module: 1]
use Phoenix.HTML
import MyPhoenixApp.Router.Helpers
import MyPhoenixApp.ErrorHelpers
import MyPhoenixApp.Gettext
alias MyPhoenixApp.Router.Helpers, as: Routes
import ReactPhoenix.ClientSide # <-- ADD THIS!
end

0 comments on commit c6a9efb

Please sign in to comment.