-
Notifications
You must be signed in to change notification settings - Fork 258
/
scully.json
69 lines (69 loc) · 1.74 KB
/
scully.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
// This is a sample Scully config file
// The projectroot is mandatory
"projectRoot": "./projects/sampleBlog/src/app",
// Define scully augmented routes here
"routes": {
/**
* use the exact routename from your Angular application.
* routes that don't exist in you app are not being processed.
*/
"/user/:userId": {
// Type is mandatory
"type": "json",
/**
* Every parameter in the route must exist here
*/
"userId": {
"url": "https://jsonplaceholder.typicode.com/users",
"property": "id"
}
},
"/noUser/:userId/:friendCode": {
// Type is mandatory
"type": "json",
/**
* Every parameter in the route must exist here
*/
"userId": {
"url": "https://jsonplaceholder.typicode.com/users",
"property": "id"
},
"friendCode": {
"url": "https://jsonplaceholder.typicode.com/posts?userId=${userId}",
"property": "id"
}
},
"/noUser/:userId/:posts/:comments": {
// Type is mandatory
"type": "json",
/**
* Every parameter in the route must exist here
*/
"userId": {
"url": "https://jsonplaceholder.typicode.com/users",
"property": "id"
},
"posts": {
"url": "https://jsonplaceholder.typicode.com/posts?userId=${userId}",
"property": "id"
},
"comments": {
"url": "https://jsonplaceholder.typicode.com/comments?postId=${posts}",
"property": "id"
}
},
"/blog/:slug": {
"type": "contentFolder",
"slug": {
"folder": "./blog"
}
},
"/sample1/:slug": {
"type": "contentFolder",
"slug": {
"folder": "./blog"
}
}
}
}