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

x/deno_nest/modules/oak/deps.ts>OakOriginRouter.url

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
method OakOriginRouter.url
import { OakOriginRouter } from "https://deno.land/x/deno_nest@v3.6.1/modules/oak/deps.ts";

Generate a URL pathname based on the provided path, interpolating the optional params provided. Also accepts an optional set of options.

Type Parameters

R extends string

Parameters

path: R
optional
params: RouteParams<R>
optional
options: UrlOptions

Returns

string