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

x/fresh/src/server/context.ts>selectMiddlewares

The next-gen web framework.
Extremely Popular
Go to Latest
function selectMiddlewares
import { selectMiddlewares } from "https://deno.land/x/fresh@1.3.1/src/server/context.ts";

Return a list of middlewares that needs to be applied for request url

Parameters

url: string

the request url

middlewares: MiddlewareRoute[]

Array of middlewares handlers and their routes as path-to-regexp style