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

x/http_wrapper/Router.ts>Router#get

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

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