import { chaynsInfo } from '../../chayns-info';

export default function getGlobalData(req, res) {
    if (chaynsInfo) {
        const data = chaynsInfo.getGlobalData();
        res.answer(data);
    }
}

import { chaynsInfo } from '../../chayns-info';

export default function getGlobalData(req, res) {
    if (chaynsInfo && res && res.answer) {
        const data = chaynsInfo.getGlobalData();
        res.answer(data);
    }
}

Fix t.answer is not a function
:bug: Fix t.answer is not a function 

