Current section

Files

Jump to
humo lib humo_web plugin_router.ex
Raw

lib/humo_web/plugin_router.ex

defmodule HumoWeb.PluginRouter do
@moduledoc false
def root() do
quote location: :keep do
end
end
def dashboard() do
quote location: :keep do
get "/", HumoWeb.Dashboard.PageController, :index
end
end
@doc """
When used, dispatch to the appropriate router.
"""
defmacro __using__(which) when is_atom(which) do
apply(__MODULE__, which, [])
end
end