UNPKG

apinode

Version:

An API server that can greatly reduce the work needed to implment API services. It can also cooperate with other API node to make it a mesh of services.

19 lines (17 loc) 403 B
/*! * apinode * authors: Ben Lue * Copyright(c) 2015~2016 Gocharm Inc. */ var apiQueue = require('../../../base/apiQueue.js'); exports.run = function(rt, cb) { var inData = rt.inData, task = { rt: rt, ep: inData.ep, param: inData.param, listener: inData.listener }; apiQueue.push( task ); cb({code: 0, message: 'Ok'}); }