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

x/danet/src/deps.ts>Router.url

The most mature backend framework for Deno
Go to Latest
method Router.url
import { Router } from "https://deno.land/x/danet@1.7.4/src/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