/// <summary> /// Sets up HTTP methods mappings. /// </summary> /// <param name="service">Service handling requests</param> public CustomModule(CustomService service) : base("/") { Get["/system/health"] = parameters => { var tags = Parameters.ValueOf <string>(parameters, Context.Request, "tags", ParameterType.Query); var combineTagsOr = Parameters.ValueOf <bool?>(parameters, Context.Request, "combineTagsOr", ParameterType.Query); return(service.GetAemHealthCheck(Context, tags, combineTagsOr)); }; Post["/apps/system/config/com.shinesolutions.healthcheck.hc.impl.ActiveBundleHealthCheck"] = parameters => { var bundlesIgnored = Parameters.ValueOf <List <string> >(parameters, Context.Request, "bundlesIgnored", ParameterType.Query); var bundlesIgnoredTypeHint = Parameters.ValueOf <string>(parameters, Context.Request, "bundlesIgnoredTypeHint", ParameterType.Query); service.PostConfigAemHealthCheckServlet(Context, bundlesIgnored, bundlesIgnoredTypeHint); return(new Response { ContentType = "" }); }; Post["/apps/system/config/com.shinesolutions.aem.passwordreset.Activator"] = parameters => { var pwdresetAuthorizables = Parameters.ValueOf <List <string> >(parameters, Context.Request, "pwdresetAuthorizables", ParameterType.Query); var pwdresetAuthorizablesTypeHint = Parameters.ValueOf <string>(parameters, Context.Request, "pwdresetAuthorizablesTypeHint", ParameterType.Query); service.PostConfigAemPasswordReset(Context, pwdresetAuthorizables, pwdresetAuthorizablesTypeHint); return(new Response { ContentType = "" }); }; }