Reference
Routes
Every page and route with method, permission, answer without signing in and rendering.
Pages
| Address | File | Permission | Without signing in | Without the permission | Rendered |
|---|---|---|---|---|---|
/ | app/page.tsx | open | the page | per request | |
/sign-in | app/sign-in/page.tsx | open | the page | per request | |
/account | app/account/page.tsx | account | 307 to /sign-in | per request | |
/settings | app/settings/page.tsx | settings | 307 to /sign-in | to / | per request |
/users | app/users/page.tsx | users | 307 to /sign-in | to / | per request |
/status | app/status/page.tsx | status | 307 to /sign-in, open without configuration | to / | per request |
/docs, /docs/<path> | app/docs/[[...path]]/page.tsx | open | the page | per 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
| Address | File | Methods | Permission | What |
|---|---|---|---|---|
/docs-image/<path> | app/docs-image/[...path]/route.ts | GET | open | an image of the documentation. Only listed images, otherwise 404 |
/api/auth/* | app/api/auth/[...all]/route.ts | GET, POST | open, Better Auth checks itself | sign 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:
| File | Actions | Who |
|---|---|---|
app/sign-in/actions.ts | createFirstAdminAction | everyone, only while there is no account and with the token |
app/users/actions.ts | createAccountAction, setRole, setPassword, banAccount, deleteAccount, createApiKeyAction, revokeApiKey | admin |
lib/i18n/actions.ts | setLocale | everyone |
Changing the password, passkeys and signing out on /account go directly to
/api/auth/*.
Static files
| Address | Without signing in |
|---|---|
/_next/static/*, /_next/image/* | open |
/favicon.ico, /icons/*, /manifest.webmanifest | open |
/sign-in/* from public/sign-in/ | open |
/settings/*.webp | 401, 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.