public CodeCheckModule(CodeCheckHandler handler) { Post["CodeCheck", "/codecheck"] = x => { var req = this.Bind<Request>(); var res = handler.CodeCheck(req); return Response.AsJson(new QuickFixResponse(res)); }; }
public CodeCheckModule(CodeCheckHandler handler) { Post["/codecheck"] = x => { var req = this.Bind <Request>(); var res = handler.CodeCheck(req); return(Response.AsJson(new QuickFixResponse(res))); }; }