diff options
Diffstat (limited to 'lib/waev_web/router.ex')
-rw-r--r-- | lib/waev_web/router.ex | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/lib/waev_web/router.ex b/lib/waev_web/router.ex new file mode 100644 index 0000000..e98f87a --- /dev/null +++ b/lib/waev_web/router.ex @@ -0,0 +1,26 @@ +defmodule WaevWeb.Router do + use WaevWeb, :router + + pipeline :browser do + plug :accepts, ["html"] + plug :fetch_session + plug :fetch_flash + plug :protect_from_forgery + plug :put_secure_browser_headers + end + + pipeline :api do + plug :accepts, ["json"] + end + + scope "/", WaevWeb do + pipe_through :browser + + get "/", PageController, :index + end + + # Other scopes may use custom stacks. + # scope "/api", WaevWeb do + # pipe_through :api + # end +end |