protected override void InitActionListImpl(CgiActionList noAuth, CgiActionList reqAuth) { try { noAuth.AddAction("/", WebMethodBits.GET | WebMethodBits.HEAD, async(ctx) => { await Task.CompletedTask; string password = ctx.QueryString.ToString(); if (password._IsEmpty()) { return(new HttpStringResult("Hello")); } else { PublishConfigData data = new PublishConfigData { Username = "******", Password = Secure.SaltPassword(password), }; return(new HttpStringResult(data._ObjectToJson(), Consts.MimeTypes.Json)); } }); noAuth.AddAction("/hook", WebMethodBits.GET | WebMethodBits.HEAD | WebMethodBits.POST, async(ctx) => { await Task.CompletedTask; this.App.HookFiredTick = TickNow; return(new HttpStringResult("OK")); }); } catch { this._DisposeSafe(); throw; } }