front/stubs/api/index.js
Nikolai Petukhov a3484f4525 backend init
2024-09-28 12:51:59 +03:00

9 lines
226 B
JavaScript

const booksRouter = require("./books");
const router = require('express').Router();
const delay = require('./middlewares/delay');
module.exports = router;
// router.use(delay(300));
router.use('/books', delay, booksRouter);