sveltekitMiddleware
sveltekitMiddleware():
Middleware
The sveltekitMiddleware
function is a middleware for SvelteKit that extracts JSON data from the
request and assigns it to the ctx.body
property, while also merging the event.locals
object into
the ctx
object.
Returns
Middleware
A middleware function that will handle request event and extract body.