# `PhoenixKitWeb.Plugs.MaintenanceMode`
[🔗](https://github.com/BeamLabEU/phoenix_kit/blob/v1.7.165/lib/modules/maintenance/web/plugs/maintenance_mode.ex#L1)

Plug that enforces maintenance mode for non-admin users on controller routes.

LiveView routes are handled by the on_mount hook in `auth.ex` which overrides
the layout instead of redirecting. This plug handles the remaining non-LiveView
routes (POST actions, OAuth callbacks, etc.) by rendering a 503 maintenance page.

Adds a `Retry-After` header when a scheduled end time is known.

# `call`

# `init`

---

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