Skip to main content
The Deno 2 Release Candidate is here
Learn more
Go to Latest
method Router.cleanPathname
import { Router } from "https://deno.land/x/allo_routing@v1.0.1/routers/Router.ts";

Clean pathname. Remove start and end slashes.

Parameters

pathname: string

Returns

string