Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/http_wrapper/Router.ts>Router#post

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

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