howdy/auth/pages
Optional accessible starter pages. Omit this controller when bringing your own UI; the JSON routes and headless operations remain available.
The pages are written in the locale auth.with_locales chooses for each
request, in English by default, and set lang and dir to match. Their
script’s words travel in a JSON block on each page, so the script itself
stays one cacheable file. The words live in auth/locales/pages/*.json;
after editing them, regenerate howdy/auth/internal/pages_messages with
cd i18n && gleam run -m howdy/i18n/cli -- gen --locales=../auth/locales/pages --out=../auth/src/howdy/auth/internal/pages_messages.gleam.
Values
pub fn routes(
identity: auth.Auth,
at prefix: String,
api_at api: String,
) -> controller.Builder(Nil)