An HTTP route served by the handler, at basePath + path. The handler returns what it gets as JSON (200), or a response built with ctx.json(body, status).
basePath + path
ctx.json(body, status)
Path relative to the handler's basePath, e.g. /router/quote
/router/quote
Optional
Privileged endpoints can only be served together with an authorize hook, like refunds. The hook runs for every endpoint that has one.
authorize
An HTTP route served by the handler, at
basePath + path. The handler returns what it gets as JSON (200), or a response built withctx.json(body, status).