File tree Expand file tree Collapse file tree 4 files changed +3
-8
lines changed Expand file tree Collapse file tree 4 files changed +3
-8
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ const path = require('path')
2
2
const glob = require ( 'glob' )
3
3
const { pathToRegexp } = require ( 'path-to-regexp' )
4
4
const signale = require ( 'signale' )
5
-
6
5
const { winPath } = require ( './utils' )
7
6
let _mockconfig = { }
8
7
const cwd = process . cwd ( )
Original file line number Diff line number Diff line change 1
- const prose = require ( './modules/prose' )
1
+ import prose from './modules/prose'
2
2
3
- module . exports = {
3
+ export default {
4
4
...prose ,
5
5
}
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const list = [
16
16
{ prose : '🔖 很久找你,一直没有找到,微风吹过的时候,我深深的呼吸,才感觉到你也在陪伴着我呼吸。' } ,
17
17
]
18
18
19
- module . exports = {
19
+ export default {
20
20
'GET /api/project/prose' : ( req , res ) => {
21
21
res . json ( list [ Math . floor ( Math . random ( ) * 8 ) ] )
22
22
} ,
You can’t perform that action at this time.
0 commit comments