Documentation
¶
Overview ¶
Package api owns shithub's PAT-authenticated HTTP API surface. S08 ships exactly one route: GET /api/v1/user. Later sprints (S22 PRs, S30 orgs, …) extend the surface here.
Routes registered here run inside the CSRF-EXEMPT group of the chi router. Auth is provided by the PATAuth middleware: no PAT → 401; PAT lacking the required scope → 403; valid scoped PAT → 200.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deps ¶
Deps is the wiring the API handlers need. Constructed by the web package and injected at registration time.
Click to show internal directories.
Click to hide internal directories.