auth with api

This commit is contained in:
Nikolai Petukhov
2024-10-03 21:15:48 +03:00
parent a3484f4525
commit a9b683797b
15 changed files with 523 additions and 23 deletions
+6 -1
View File
@@ -1,8 +1,13 @@
const booksRouter = require("./books");
const authRouter = require("./auth");
const router = require('express').Router();
const delay = require('./middlewares/delay');
module.exports = router;
// router.use(delay(300));
router.use('/books', delay, booksRouter);
// router.use('/books', delay, booksRouter);
router.use('/auth', authRouter);