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

x/deno_nest/mod.ts>Application#get

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

Only give a simple quick start example here, not recommended to use it for complex functions.

Because it is not subject to the overall framework process framework and is not associated with guards, interceptors, filters, etc.

Its execution order with middleware is also not guaranteed by the framework, for example, oak middleware will be executed first, but the hono may see the order get and middlewares.

Parameters

path: string
middleware: NestMiddleware