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

x/deno_nest/src/interfaces/mod.ts>IRouter

Refer to nestjs to realize some common functions for Deno, support hono and oak
Go to Latest
class IRouter
Abstract
import { IRouter } from "https://deno.land/x/deno_nest@v3.3.1/src/interfaces/mod.ts";

Methods

abstract
delete(path: string, fn: MiddlewareHandler): any
abstract
get(path: string, fn: MiddlewareHandler): any
abstract
notFound(fn: NotFoundHandler): void
abstract
patch(path: string, fn: MiddlewareHandler): any
abstract
post(path: string, fn: MiddlewareHandler): any
abstract
put(path: string, fn: MiddlewareHandler): any
abstract
routes(): void
abstract
serveForStatic(staticOptions?: StaticOptions): void
abstract
startServer(options?: ListenOptions): any
abstract
use(fn: MiddlewareHandler): void
abstract
useOriginMiddleware(fn: Function, path?: string): void