multy-stub/server/routers/kfu-m-24-1/eng-it-lean/index.js

16 lines
356 B
JavaScript

const router = require("express").Router();
const dictionariesRouter = require("./dictionaries");
const unitsRouter = require('./units');
module.exports = router;
const delay =
(ms = 250) =>
(req, res, next) => {
setTimeout(next, ms);
};
router.use(delay());
router.use("/dictionaries", dictionariesRouter);
router.use('/units', unitsRouter);