init from origin + update
This commit is contained in:
19
server/routers/example/index.js
Normal file
19
server/routers/example/index.js
Normal file
@@ -0,0 +1,19 @@
|
||||
const router = require('express').Router()
|
||||
|
||||
const first = router.get('/first', (req, res) => {
|
||||
res.send({
|
||||
success: true,
|
||||
warnings: [{
|
||||
title: 'Внимание',
|
||||
text: 'Данный api создан для примера!',
|
||||
}],
|
||||
})
|
||||
|
||||
/**
|
||||
* Этот эндпоинт будет доступен по адресу http://89.223.91.151:8080/multystub/example/first
|
||||
*/
|
||||
})
|
||||
|
||||
router.use('/example-api', first)
|
||||
|
||||
module.exports = router
|
||||
Reference in New Issue
Block a user