multy-stub/server/routers/epja-2024-1/enterfront/index.js

18 lines
467 B
JavaScript
Raw Permalink Normal View History

2024-10-16 11:06:23 +03:00
const changeRouter = require("./change")
const authRouter = require("./auth")
const chatRouter = require("./chat")
2024-10-10 12:02:52 +03:00
2024-10-16 11:06:23 +03:00
const router = require('express').Router()
2024-10-10 12:02:52 +03:00
2024-10-16 11:06:23 +03:00
const delay = require('./middlewares/delay')
const verify = require('./middlewares/verify')
2024-10-10 12:02:52 +03:00
2024-10-16 11:06:23 +03:00
module.exports = router
2024-10-10 12:02:52 +03:00
// router.use(delay(300));
// router.use('/books', delay, booksRouter);
2024-10-16 11:06:23 +03:00
router.use('/auth', authRouter)
router.use('/change', verify, changeRouter)
2024-10-10 12:02:52 +03:00
router.use('/chat', verify, chatRouter)