You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
516 B
33 lines
516 B
/*
|
|
* @Author: your name
|
|
* @Date: 2021-07-28 10:15:53
|
|
* @LastEditTime: 2021-07-28 11:37:12
|
|
* @LastEditors: Please set LastEditors
|
|
* @Description: In User Settings Edit
|
|
* @FilePath: \19-plugin-turn-over\route.js
|
|
*/
|
|
get('/blog').to.json({
|
|
code: 200,
|
|
msg: 'ok',
|
|
data: {
|
|
title: 'Hello world'
|
|
}
|
|
})
|
|
|
|
post('/getDate').to.json({
|
|
code: 200,
|
|
msg: 'ok',
|
|
data: {
|
|
status: 0,
|
|
},
|
|
success: true
|
|
})
|
|
|
|
post('/choose').to.json({
|
|
code: 200,
|
|
msg: 'ok',
|
|
data: {
|
|
status: 3,
|
|
},
|
|
success: true
|
|
})
|
|
|