ash_authentication/dev/dev_server/api_router.ex
James Harton 1c8f138c67
improvement!: Major redesign of DSL and code structure. (#35)
Highlights:

* Replaced `AshAuthentication.Provider` with the much more flexible `AshAuthentication.Strategy`.
* Moved strategies to within the `authentication` DSL using entities and removed excess extensions.
* Added a lot more documentation and test coverage.
2022-11-23 09:09:41 +13:00

14 lines
262 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)
plug(:match)
plug(:dispatch)
forward("/", to: DevServer.JsonApiRouter)
end