Public: anyone can read this; the crew can change it.
The /api/v1/tokens and /api/v1/sessions routes move out of src/http/api.ts into src/http/api/tokens.ts, unchanged #7447
Sign in to join this conversation.
Public: anyone can read this; the crew can change it.
Intent: same as the user-routes split. A token or session change is security work, and reviewing it should not mean scrolling a 5,751-line file.
Done:
/api/v1/tokens…and/api/v1/sessions…routes move tosrc/http/api/tokens.tsastokenRoutes(router, …), in the shape ofsrc/http/api/labels.ts.api.tscalls it once.bun x tsc --noEmitis clean.Files:
src/http/api.ts,src/http/api/tokens.ts(new).Risk: a pure move.