summaryrefslogtreecommitdiff
path: root/examples/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/index.js')
-rw-r--r--examples/index.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/index.js b/examples/index.js
index 1e74968..7e0c6f9 100644
--- a/examples/index.js
+++ b/examples/index.js
@@ -28,18 +28,18 @@ var app = okcms.createApp({
views: {
'/': {
data: [
- {type: 'project', id: '*'},
- {type: 'page', id: '*'}
+ {type: 'project', query: '*'},
+ {type: 'page', query: '*'}
]
},
'/about': {
- data: {type: 'page', id: 'about'}
+ data: {type: 'page', query: 'about'}
},
'/contact': {
- data: {type: 'page', id: 'contact'}
+ data: {type: 'page', query: 'contact'}
},
'/:id': {
- data: {type: 'project', id: ':id'}
+ data: {type: 'project', query: ':id'}
}
}