Adminable v0.1.0 Adminable.Plug View Source

Plug for admin routes. Add this to your phoenix router

scope "/admin" do
  pipe_through [:browser, :my, :other, :pipelines]

  forward("/", Adminable.Plug, [
    otp_app: :my_app,
    repo: MyApp.Repo,
    schemas: [MyApp.User],
    layout: {MyAppWeb.LayoutView, "app.html"}
  ])
end

Link to this section Summary

Link to this section Functions