mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-20 13:24:20 +12:00
18 lines
296 B
Elixir
18 lines
296 B
Elixir
|
defmodule DevServer.WebRouter do
|
||
|
@moduledoc """
|
||
|
Router for web (browser) requests.
|
||
|
"""
|
||
|
use Plug.Router
|
||
|
import Example.AuthPlug
|
||
|
|
||
|
plug(:load_from_session)
|
||
|
plug(:match)
|
||
|
plug(:dispatch)
|
||
|
|
||
|
get("/", to: DevServer.TestPage)
|
||
|
|
||
|
match _ do
|
||
|
send_resp(conn, 404, "NOT FOUND")
|
||
|
end
|
||
|
end
|