const {getConnections} = require('./../service');
const {returnJson} = require('./../async-util');
const Router = require('./router');

/** Get a connections router

  {
    lnd: <LND GRPC API Object>
    log: <Log Function>
  }

  @returns
  <Router Object>
*/
module.exports = ({lnd}) => {
  const router = Router({});

  // Get connections
  router.get('/', ({}, res) => getConnections({lnd}, returnJson({log, res})));

  return router;
};


@@ -277,16 +277,21 @@
  = (%7Blnd
+, log
 %7D) =%3E %7B%0A

fix connections router misreference