Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.1.3/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