HenniOKF
Documentation

Reference

Routes

Every page and route with method, permission, answer without signing in and rendering.

Pages

AddressFilePermissionWithout signing inWithout the permissionRendered
/app/page.tsxopenthe pageper request
/sign-inapp/sign-in/page.tsxopenthe pageper request
/accountapp/account/page.tsxaccount307 to /sign-inper request
/settingsapp/settings/page.tsxsettings307 to /sign-into /per request
/usersapp/users/page.tsxusers307 to /sign-into /per request
/statusapp/status/page.tsxstatus307 to /sign-in, open without configurationto /per request
/docs, /docs/<path>app/docs/[[...path]]/page.tsxopenthe pageper request; the addresses at build time

The redirect to /sign-in carries the original path in next, except for /. /sign-in leads a signed-in visitor to next, without configuration to /status. An address under /docs that is not in the list of the build is 404.

Without configuration every protected page leads to /status with 307.

Routes

AddressFileMethodsPermissionWhat
/docs-image/<path>app/docs-image/[...path]/route.tsGETopenan image of the documentation. Only listed images, otherwise 404
/api/auth/*app/api/auth/[...all]/route.tsGET, POSTopen, Better Auth checks itselfsign in, sign out, session, passkeys, management by the admin, API keys

Without signing in every protected request that is not a page answers 401 with { "error": "…" }; without configuration 503.

Server actions

The forms call server actions, not routes of their own:

FileActionsWho
app/sign-in/actions.tscreateFirstAdminActioneveryone, only while there is no account and with the token
app/users/actions.tscreateAccountAction, setRole, setPassword, banAccount, deleteAccount, createApiKeyAction, revokeApiKeyadmin
lib/i18n/actions.tssetLocaleeveryone

Changing the password, passkeys and signing out on /account go directly to /api/auth/*.

Static files

AddressWithout signing in
/_next/static/*, /_next/image/*open
/favicon.ico, /icons/*, /manifest.webmanifestopen
/sign-in/* from public/sign-in/open
/settings/*.webp401, as a page 307

Headers

Every response carries the headers from SECURITY_HEADERS in next.config.mjs, see Security. Routes with a stricter policy stand in STRICT_PATHS; in phase 1 the list is empty.

Later phases

The planned routes of the phases 2 to 6, such as /bundles/<bundle>, /read/<bundle>/<path>, /search, /tags, /jobs, /mcp and /download, are listed in spec/routes.md. They come into this page with the phase that builds them.