PhxAdmin v0.9.1 PhxAdmin.Router
Router macro for PhxAdmin sites.
Provides a helper macro for adding up PhxAdmin routes to your application.
Examples:
defmodule MyProject.Router do
use MyProject.Web, :router
use PhxAdmin.Router
...
scope "/", MyProject do
...
end
# setup the PhxAdmin routes on /admin
scope "/admin", PhxAdmin do
pipe_through :browser
admin_routes
end
end
Summary
Functions
Callback invoked by Plug on every request
Callback required by Plug that initializes the router for serving web requests
Macros
Add PhxAdmin Routes to your project’s router