public WidgetSpecificationModule(IWidgetSpecificationService widgetSpecificationService) : base("/_kola/widgets") { this.widgetSpecificationService = widgetSpecificationService; this.Get["/"] = p => this.GetWidget(); this.Put["/"] = p => this.PutWidget(); this.Get["/components"] = p => this.GetComponent(); this.Get["/amendments"] = p => this.GetAmendments(); this.Post["/amendments"] = p => this.PostAmendment(); this.Put["/amendments"] = p => this.ApplyAmendments(); this.Delete["/amendments"] = p => this.UndoAmendment(); }