Skip to content

Commit

Permalink
move the /api/[api-version] from the resource to the scope
Browse files Browse the repository at this point in the history
  • Loading branch information
ghatighorias committed Oct 30, 2017
1 parent eb8986e commit ea1d910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/course_planner_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ defmodule CoursePlannerWeb.Router do
handler: CoursePlanner.Auth.GuardianErrorHandler
end

scope "/" do
scope "/api/v1" do
pipe_through :public_api

resources "/api/sessions", CoursePlannerWeb.Auth.Api.JsonSessionController,
resources "/sessions", CoursePlannerWeb.Auth.Api.JsonSessionController,
only: [:create]
end

Expand Down

0 comments on commit ea1d910

Please sign in to comment.