multy-stub/server/routers/old/easy-project/index.js
Primakov Alexandr Alexandrovich 4b0d9b4dbc mongoose + tests
2024-10-16 11:06:23 +03:00

16 lines
394 B
JavaScript

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