# `OctaStar.Plug.Dispatch`

Allowlisted Datastar event dispatch plug.

Configure it with the modules that are allowed to receive events:

    post "/ds/:module/:event", OctaStar.Plug.Dispatch,
      modules: [MyAppWeb.CounterEvents]

Handler modules must export `handle_event(conn, event, signals)`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
