'use strict';

var express = require('express');
var conversations = require('./conversations');

function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }

function _interopNamespace(e) {
  if (e && e.__esModule) return e;
  var n = Object.create(null);
  if (e) {
    Object.keys(e).forEach(function (k) {
      if (k !== 'default') {
        var d = Object.getOwnPropertyDescriptor(e, k);
        Object.defineProperty(n, k, d.get ? d : {
          enumerable: true,
          get: function () { return e[k]; }
        });
      }
    });
  }
  n.default = e;
  return Object.freeze(n);
}

var express__default = /*#__PURE__*/_interopDefault(express);
var conversations__namespace = /*#__PURE__*/_interopNamespace(conversations);

function router(ctx) {
  return express__default.default.Router({ mergeParams: true }).use(
    "/conversations",
    conversations__namespace.router({
      ...ctx,
      log: ctx.log.child("conversations")
    })
  );
}

exports.router = router;
//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map