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

x/http_wrapper/Router.ts>Router#patch

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

Register a PATCH 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.