multy-stub/server/routers/todo/index.js

15 lines
303 B
JavaScript
Raw Normal View History

2025-01-18 15:44:14 +03:00
const { Router } = require('express')
const router = Router()
const todoRouter = require('./routes')
const authRouter = require('./auth')
2025-01-18 17:45:16 +03:00
const commentRouter = require('./comment')
2025-01-18 15:44:14 +03:00
router.use('/auth', authRouter)
2025-01-18 17:45:16 +03:00
router.use('/comment', commentRouter)
2025-01-18 15:44:14 +03:00
2025-01-18 16:50:58 +03:00
router.use(todoRouter)
2025-01-18 15:44:14 +03:00
module.exports = router