mirror of
https://github.com/typicode/json-server.git
synced 2025-07-25 03:07:46 +08:00
update fixtures
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,4 +5,3 @@ lib
|
|||||||
node_modules
|
node_modules
|
||||||
public/output.css
|
public/output.css
|
||||||
tmp
|
tmp
|
||||||
db.json
|
|
||||||
|
13
fixtures/db.json
Normal file
13
fixtures/db.json
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"posts": [
|
||||||
|
{ "id": "1", "title": "a title" },
|
||||||
|
{ "id": "2", "title": "another title" }
|
||||||
|
],
|
||||||
|
"comments": [
|
||||||
|
{ "id": "1", "text": "a comment about post 1", "postId": "1" },
|
||||||
|
{ "id": "2", "text": "another comment about post 1", "postId": "1" }
|
||||||
|
],
|
||||||
|
"profile": {
|
||||||
|
"name": "typicode"
|
||||||
|
}
|
||||||
|
}
|
@ -21,4 +21,7 @@
|
|||||||
postId: '1',
|
postId: '1',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
profile: {
|
||||||
|
name: 'typicode',
|
||||||
|
},
|
||||||
}
|
}
|
Reference in New Issue
Block a user