Skip to main content

Module routes

Module routes 

Source
Expand description

HTTP routes. One module per upstream router, so a change upstream maps to an obvious place.

The axum handlers live in http and do exactly three things: build a crate::params::Params from the query string, resolve the request context, and hand a dispatch::Route to dispatch::dispatch. Every behavior is in the cores below, because /batch reaches the same cores and two copies of a handler are two copies that drift.

Modulesยง

batch
POST /batch.
classes
The five /classes verbs, and the cores every other class-shaped route reuses.
dispatch
One route table, two entry points.
features
GET /serverInfo. Master-key gated.
health
GET /health. Credential-free upstream, and the endpoint every bring-up script polls.
http
The axum layer: extractors in, dispatch out.
schemas
/schemas and DELETE /purge/:className. Master key only, on every verb.
sessions
GET /sessions/me.
users
Signup, login, /users/me, logout.