diff options
| author | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-03 12:40:03 -0400 |
|---|---|---|
| committer | Sean Fridman <fridman@mail.sfsu.edu> | 2015-04-03 12:40:03 -0400 |
| commit | e04236546cc0978c892bbb360ff909b3460d67a6 (patch) | |
| tree | cb0d8eedece34ca8d407dc8b1d07a1223c88164f /examples/index.js | |
| parent | 7d15bc8a49121dd85171d7837c4f6a97a7e096dc (diff) | |
Queries now properly backed by resources
Diffstat (limited to 'examples/index.js')
| -rw-r--r-- | examples/index.js | 10 |
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'} } } |
