mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-20 13:24:20 +12:00
15 lines
276 B
Elixir
15 lines
276 B
Elixir
|
defmodule DevServer.ApiRouter do
|
||
|
@moduledoc """
|
||
|
Router for API Requests.
|
||
|
"""
|
||
|
use Plug.Router
|
||
|
import Example.AuthPlug
|
||
|
|
||
|
plug(:load_from_bearer)
|
||
|
plug(:set_actor, :user_with_username)
|
||
|
plug(:match)
|
||
|
plug(:dispatch)
|
||
|
|
||
|
forward("/", to: DevServer.JsonApiRouter)
|
||
|
end
|