import { serve } from "https://deno.land/x/oak@v17.1.2/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>