Skip to content

Commit

Permalink
logout link only available to login people, #119
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonLab committed Dec 12, 2019
1 parent a15587a commit a24f842
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/app_web/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ defmodule AppWeb.Router do
get "/", PageController, :index
post "/register", PageController, :register
get "/auth/google/callback", GoogleAuthController, :index
get "/people/logout", PersonController, :logout
end

scope "/", AppWeb do
pipe_through [:browser, :person]

# person information
get "/people/info", PersonController, :info
get "/people/logout", PersonController, :logout

# generic resources for schemas:
resources "/items", ItemController
Expand Down

0 comments on commit a24f842

Please sign in to comment.