mongoose + tests

This commit is contained in:
Primakov Alexandr Alexandrovich
2024-10-16 11:06:23 +03:00
parent 2cfcd7347b
commit 4b0d9b4dbc
1295 changed files with 4579 additions and 1719 deletions
+13
View File
@@ -0,0 +1,13 @@
const router = require('express').Router()
const first = router.get('/allcourses', (req, res) => {
res.send(require('./stubs/allCourses.json'))
/**
* Этот эндпоинт будет доступен по адресу http://89.223.91.151:8080/multystub/example/first
*/
})
router.use('/example-api', first)
module.exports = router