UNPKG

gpii-universal

Version:

Cross platform, core components of the GPII personalization infrastructure.

31 lines (23 loc) 742 B
/*! GPII Health Check Handler shared by Cloud Based Flow Manager and Preferences Server Copyright 2018 OCAD University Licensed under the New BSD license. You may not use this file except in compliance with this License. You may obtain a copy of the License at https://github.com/GPII/universal/blob/master/LICENSE.txt */ "use strict"; var fluid = require("infusion"), gpii = fluid.registerNamespace("gpii"); fluid.defaults("gpii.health.handler", { gradeNames: ["kettle.request.http"], invokers: { handleRequest: { funcName: "gpii.health.handleRequest", args: ["{that}"] } } }); gpii.health.handleRequest = function (that) { that.events.onSuccess.fire({isHealthy: true}); };