# `mix mailglass.gen.inbound_router`
[🔗](https://github.com/szTheory/mailglass/blob/v2.7.0/lib/mix/tasks/mailglass.gen.inbound_router.ex#L8)

Scaffolds a new inbound router module.

The generated module declares `use MailglassInbound.Router` and a single
sample `route/2` so the file compiles and serves as a copy-edit starting
point. Add real routes with `mix mailglass.gen.inbound_route` or by editing
the file directly.

## Examples

    mix mailglass.gen.inbound_router InboundRouter
    mix mailglass.gen.inbound_router MyApp.InboundRouter

`--dry-run` is supported as the framework-provided global switch (it is *not*
in this task's option schema); it previews the diff and writes nothing.

---

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