backend init

This commit is contained in:
Nikolai Petukhov
2024-09-28 12:51:59 +03:00
parent 876ef28221
commit a3484f4525
7 changed files with 64 additions and 0 deletions
+5
View File
@@ -1,3 +1,8 @@
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);