View Source AshPyro.Extensions.Resource.Router (AshPyro v0.0.1)

Tooling to generate routes for AshPyro's LiveView page DSL.

Summary

Functions

Generates live routes for a given LiveView, resource and page.

Functions

Link to this macro

live_routes_for(live_view, resource, page_name)

View Source (macro)

Generates live routes for a given LiveView, resource and page.

defmodule ExampleWeb.Router do
  use ExampleWeb, :router
  import AshPyro.Extensions.Resource.Router

  # ...

  scope "/", ExampleWeb do
    pipe_through :browser

    live_routes_for CompanyLive, Example.Company, :companies
    end
  end
end