Skip to content

Commit 97b84d1

Browse files
committed
Modify README with new feature
1 parent 6389caa commit 97b84d1

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ export default {
2626
'age|18-54': 1,
2727
}]
2828
}).list;
29-
return {
30-
status: 200,
31-
data: all,
32-
};
29+
return all; // default status is 200
3330
},
3431
'/api/path/{id}': ({ method, url, params, urlparams, headers }) => {
3532
const all = Mock.mock({
@@ -40,10 +37,7 @@ export default {
4037
'urlid': urlparams.id,
4138
}]
4239
}).list;
43-
return {
44-
status: 200,
45-
data: all,
46-
};
40+
return all;
4741
},
4842
'POST /api/path': ({ method, url, params, urlparams, headers }) => {
4943
return {

0 commit comments

Comments
 (0)