2024-10-03 22:35:39 +03:00
|
|
|
const changeRouter = require("./change");
|
2024-10-03 21:15:48 +03:00
|
|
|
const authRouter = require("./auth");
|
2024-10-04 00:06:44 +03:00
|
|
|
const chatRouter = require("./chat");
|
2024-10-03 21:15:48 +03:00
|
|
|
|
2024-09-07 11:27:38 +03:00
|
|
|
const router = require('express').Router();
|
2024-10-03 21:15:48 +03:00
|
|
|
|
2024-09-28 12:51:59 +03:00
|
|
|
const delay = require('./middlewares/delay');
|
2024-10-03 22:35:39 +03:00
|
|
|
const verify = require('./middlewares/verify');
|
2024-09-07 11:27:38 +03:00
|
|
|
|
|
|
|
module.exports = router;
|
2024-09-28 12:51:59 +03:00
|
|
|
|
|
|
|
// router.use(delay(300));
|
2024-10-03 21:15:48 +03:00
|
|
|
// router.use('/books', delay, booksRouter);
|
|
|
|
|
2024-10-10 12:03:37 +03:00
|
|
|
router.use('/auth', authRouter);
|
|
|
|
router.use('/change', verify, changeRouter);
|
|
|
|
router.use('/chat', verify, chatRouter)
|