multy-stub/server/routers/old/easy-project/index.js

16 lines
394 B
JavaScript
Raw Normal View History

2023-08-01 13:14:02 +03:00
const router = require('express').Router()
router.use('/', require('./auth'))
router.use((err, req, res, next) => {
res.status(400).send({
success: false, error: err.message || 'Что-то пошло не так',
})
})
router.use('/projects', require('./projects'))
router.use('/tasks', require('./tasks'))
router.use('/users', require('./users'))
module.exports = router