Skip to main content
Module

x/hono/middleware.ts>appendTrailingSlash

Fast, Lightweight, Web-standards
Extremely Popular
Go to Latest
variable appendTrailingSlash
import { appendTrailingSlash } from "https://deno.land/x/hono@v4.2.1/middleware.ts";

Append a trailing slash to the URL if it doesn't have one. For example, /path/to/page will be redirected to /path/to/page/.

Examples

app.use(appendTrailingSlash())