constructor()

in src/router.ts [19:31]


  constructor(handlers: IAddHandler) {
    this.handlers = handlers;

    /**
     * TODO: look at generating the router dynamically based on list of supported http methods
     * instead of hardcoding the creation of these and the methods.
     */
    this.getRouteRecognizer = new RouteRecognizer();
    this.patchRouteRecognizer = new RouteRecognizer();
    this.postRouteRecognizer = new RouteRecognizer();
    this.putRouteRecognizer = new RouteRecognizer();
    this.deleteRouteRecognizer = new RouteRecognizer();
  }