kfu-24-teacher/stubs/api/index.js
2024-12-07 13:43:07 +03:00

13 lines
249 B
JavaScript

const router = require('express').Router();
const listRouter = require('./list');
module.exports = router;
const delay =
(ms = 1000) =>
(req, res, next) => {
setTimeout(next, ms);
};
router.use(delay());
router.use('/list', listRouter);