Skip to main content
Module

x/knight/mod.ts>Knight

MVC web server framework for Deno 🦕 built on Oak
Latest
class Knight
import { Knight } from "https://deno.land/x/knight@2.3.0/mod.ts";

Static Properties

private
_mode

Static Methods

private
endpointHandler<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = Record<string, any>>(thisArg: any, handler: RouterMiddleware<R, P, S>)
private
findLocalControllersIn(directory: string)

Find all controllers in the local project

private
registerRouter(router: Router<Record<string, any>>, controllers: IController[])

Register a list of controllers

create a new web server and connect controllers in the local project.

deprecated
createApi(controllers: IController[])
deprecated
registerApp(app: Application, controllers: IController[])