kfu-24-teacher/stubs/api/index.js
2024-12-14 13:08:54 +03:00

15 lines
324 B
JavaScript

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