@jsonql/koa
Version: 
This is the all in one package to start your jsonql project with Koa, jsonql-koa, jsonql-ws-server and more
12 lines (11 loc) • 362 B
JavaScript
// main
const JsonqlKoaServer = require('./src/jsonql-koa-server')
/**
 * @param {object} [config={}]
 * @param {array} [middlewares=[]]
 * @return {object} the jsonqlKoaServer instance see the class for more info
 * @public
 */
module.exports = function createJsonqlKoaServer(config = {}, middlewares = []) {
  return new JsonqlKoaServer(config, middlewares)
}