UNPKG

aztec

Version:

Node Js Framework for creating API Services

35 lines (29 loc) 590 B
export interface $Middleware { (req, res, next): void; } export interface $Router { rootPath: string; routes: any[]; } export interface $Route { method: string; path: string; action?: string; guard?: boolean; middlewares?: $Middleware[]; basePath?: string; render?: boolean; } export interface $ErrorHandler { (req, res, statusCode): void; } export interface $Manager { path: string } export interface $Handler { env: string; error: (err: string) => any; userError: (err: string) => any; warning: (warn: string) => any; info: (info: string) => any; }