Skip to content

Commit

Permalink
set up router to return json at /api #1
Browse files Browse the repository at this point in the history
  • Loading branch information
RobStallion committed Jul 24, 2017
1 parent 5abcfde commit 43064b1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,9 @@ defmodule EpjsApp.Router do
plug :accepts, ["json"]
end

scope "/", EpjsApp do
pipe_through :browser # Use the default browser stack
scope "/api", EpjsApp do
pipe_through :api

get "/", PageController, :index
end

# Other scopes may use custom stacks.
# scope "/api", EpjsApp do
# pipe_through :api
# end
end

0 comments on commit 43064b1

Please sign in to comment.