import { IController, PluginHandler } from "./types"; export class Controller implements IController { public path: string; public handler: PluginHandler; constructor(path: string, handler: PluginHandler) { this.path = path; this.handler = (server, opts, next) => { handler(server, opts, next); next(); }; } }