Incant.Router (incant v0.1.0)

Copy Markdown

Router helpers for mounting Incant admin surfaces.

Summary

Functions

incant(path, admin_or_opts, opts \\ [])

(macro)

Mounts Incant.

Local admin module:

scope "/" do
  pipe_through :browser

  incant "/admin", MyApp.Admin
end

Service registry:

scope "/" do
  pipe_through :browser

  incant "/admin", registry: MyApp.IncantRegistry
end

incant_admin(path, admin, opts \\ [])

(macro)

Deprecated alias for incant/3.