Request Data
You can access the request data in the ctx
object under ctx.request
.
Example
const r = router({
"/...slug": any((ctx) => ({
method: ctx.request.method,
url: ctx.request.url,
headers: ctx.request.headers,
}))
});
You can access the request data in the ctx
object under ctx.request
.
const r = router({
"/...slug": any((ctx) => ({
method: ctx.request.method,
url: ctx.request.url,
headers: ctx.request.headers,
}))
});