-
Notifications
You must be signed in to change notification settings - Fork 0
TypeScript: implement Koa route, middleware, router, and context support #93
Copy link
Copy link
Open
Labels
area:authAuthentication, authorization, and scope evidenceAuthentication, authorization, and scope evidencearea:frameworkFramework route and request source extractionFramework route and request source extractionenhancementNew feature or requestNew feature or requestphase:7-ecosystem-expansionPost-v1 framework, ORM, and ecosystem expansionPost-v1 framework, ORM, and ecosystem expansionpriority:p3Useful follow-up or post-v1 workUseful follow-up or post-v1 worksize:lLarge implementation sliceLarge implementation slicestack:typescriptTypeScript, JavaScript, or TS ecosystem supportTypeScript, JavaScript, or TS ecosystem support
Description
Metadata
Metadata
Assignees
Labels
area:authAuthentication, authorization, and scope evidenceAuthentication, authorization, and scope evidencearea:frameworkFramework route and request source extractionFramework route and request source extractionenhancementNew feature or requestNew feature or requestphase:7-ecosystem-expansionPost-v1 framework, ORM, and ecosystem expansionPost-v1 framework, ORM, and ecosystem expansionpriority:p3Useful follow-up or post-v1 workUseful follow-up or post-v1 worksize:lLarge implementation sliceLarge implementation slicestack:typescriptTypeScript, JavaScript, or TS ecosystem supportTypeScript, JavaScript, or TS ecosystem support
Parent
Part of #89.
Context
Koa is a major middleware-oriented Node framework. Route support commonly comes through
@koa/routerorkoa-router, and request data flows throughctx, middleware, body parsers, params, query, cookies, headers, and state.Reference: https://koajs.com/
Scope
router.get/post/put/patch/delete,router.use, prefixes, nested routers, middleware chains, and mounted routes where statically visible.ctx.params,ctx.query,ctx.request.body,ctx.request.files,ctx.headers,ctx.cookies,ctx.state, and body parser outputs.Acceptance Criteria
ctx.statecurrent user/tenant evidence, tenant/object scope, and safe mapping.Test Plan
cargo fmt --all -- --check,cargo clippy --locked --workspace --all-targets, andcargo test --locked --workspace.