# `PhoenixKitKnowledgeBase.Routes`
[🔗](https://github.com/BeamLabEU/phoenix_kit_knowledge_base/blob/v0.1.0/lib/phoenix_kit_knowledge_base/routes.ex#L1)

Route macros for the knowledge base's four admin pages. Returned from
`PhoenixKitKnowledgeBase.route_module/0`; PhoenixKit injects these inside the
admin `live_session`, so authentication and the admin layout are applied
automatically.

Both localized (`/:locale/admin/...`) and non-localized sets are defined, as
required — and each route needs a unique `:as`, hence the `_localized`
suffixes.

Ordering matters in one place: `notes/new` is declared before `notes/:id`, or
the `:id` pattern claims the literal "new" and creating a note 404s looking
for a note with that uuid.

# `admin_locale_routes`

Localized admin routes (inside the /:locale scope).

# `admin_routes`

Non-localized admin routes.

---

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