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

x/hex/src/service/deps.ts>oak.RouterOptions

An ecosystem delivering practices, philosophy and portability.
Go to Latest
interface oak.RouterOptions
import { type oak } from "https://deno.land/x/hex@0.5.15/src/service/deps.ts";
const { RouterOptions } = oak;

Properties

optional
methods: HTTPMethods[]

Override the default set of methods supported by the router.

optional
prefix: string

Only handle routes where the requested path starts with the prefix.

optional
routerPath: string

Override the request.url.pathname when matching middleware to run.

optional
sensitive: boolean

Determines if routes are matched in a case sensitive way. Defaults to false.

optional
strict: boolean

Determines if routes are matched strictly, where the trailing / is not optional. Defaults to false.