Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/http_wrapper/Router.ts>Router#options

Simple Server/Router wrapper around Deno's HTTP module
Latest
method Router.prototype.options
import { Router } from "https://deno.land/x/http_wrapper@v0.5.0/Router.ts";

Register an OPTIONS endpoint

Parameters

route: string
  • URI to call this function
func: (req: ServerRequest, vars: RouteVariables) => void
  • The function that will be run when this endpoint is called.