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

x/allo_controllers/libs/allo_routing.ts>Router.cleanPathname

🦕 Simple "convention over configuration" Controllers solution for Deno.
Latest
method Router.cleanPathname
Re-export
import { Router } from "https://deno.land/x/allo_controllers@v1.1.5/libs/allo_routing.ts";

Clean pathname. Remove start and end slashes.

Parameters

pathname: string

Returns

string