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

x/deno_nest/mod.ts>Application#useOriginMiddleware

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
method Application.prototype.useOriginMiddleware
import { Application } from "https://deno.land/x/deno_nest@v3.6.1/mod.ts";

use the origin middleware, not recommend to use if you don't know what you are doing.

Parameters

originMiddleware: Function

the hono middleware or oak middleware

optional
path: string

the path to use the middleware, this only work for hono middleware