nav2/stubs/api/index.js

9 lines
168 B
JavaScript
Raw Normal View History

2024-10-22 21:29:29 +03:00
const router = require('express').Router();
const timer = (time = 300) => (req, res, next) => setTimeout(next, time);
router.use(timer());
module.exports = router;