score:2

global.$ = {
    get: (url, cb) => {
        const req = {url: url};
        const res = {
            send: data => cb(data),
            status: () => {
                return {send: data => cb(data)};
            }
        };
        return api_router(req, res);
    }
};

Related Query

More Query from same tag