Skip to content

Commit

Permalink
update router.ex to use resources p.62 #55
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Jan 22, 2019
1 parent 918b126 commit 83cd8eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rumbl/lib/rumbl_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ defmodule RumblWeb.Router do

scope "/", RumblWeb do
pipe_through :browser
get "/users", UserController, :index
get "/users/:id", UserController, :show
get "/", PageController, :index
resources "/users", UserController, only: [:index, :show, :new, :create]
end

# Other scopes may use custom stacks.
Expand Down

0 comments on commit 83cd8eb

Please sign in to comment.