ActionRoutes
@rotorsoft/act-root / act-http/src/hono / ActionRoutes
Type Alias: ActionRoutes<TApp, TBase>
ActionRoutes<
TApp,TBase> = { [K in keyof AppActions<TApp> & string as MergePath<TBase, `/actions/${K}`>]: { $post: { input: { json: AppActions<TApp>[K] }; output: JSONParsed<ActionResult<TApp, K>>; outputFormat: "json"; status: 200 } | { input: { json: AppActions<TApp>[K] }; output: ApiError; outputFormat: "json"; status: ErrorStatus } } }
Defined in: libs/act-http/src/hono/index.ts:461
The routes hono builds, one POST <basePath>/actions/<name> per
action of TApp: the action's payload as the JSON body, the snapshots
app.do returns (as JSON) on 200, and ApiError on an error
status. hc<typeof api> and testClient(api) read it.
Type Parameters
TApp
TApp
TBase
TBase extends string