import { serve } from "https://deno.land/x/oak@v14.1.0/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 Request
and return a standard Response
.
Type Parameters
S extends State
Parameters
middleware: ServeMiddleware<S>