text: "use strict";
  let jefferson = require("express-jefferson");
  let mountie = require("express-mountie");
  let path = require("path");
  let drugs = require("../../middleware/drugs");
  let cache = require("../../middleware/cache");
  
  let router = jefferson.router({
      proxies: [require("express-jefferson/proxies/promise-handler")],
      pre: {
          all: [cache({maxAge: 3600})]
      },
      routes: {
          "/": {
              "get": [drugs.index]
          }
      }
  });
  
  mountie({
      parent: router,
      src: path.join(__dirname, "routers"),
      prefix: (name) => `/${name}`
  });
  
  module.exports = router;
  