import { serve } from "https://dotland.deno.dev/x/oak@v17.1.3/middleware/serve.ts";
Wrap a handler function to generate middleware that can be used with an oak
Application
. This allows the handler to deal with a Fetch API
standard {@link Request
} and return a standard {@link Response
}.
Type Parameters
S extends State
Parameters
middleware: ServeMiddleware<S>