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 7e0c6f9..c4fd3be 100644
--- a/examples/index.js
+++ b/examples/index.js
@@ -2,15 +2,15 @@ var okcms = require('..');
var app = okcms.createApp({
- root: 'www',
+ root: 'public',
schemas: {
page: {
- title: {type: 'string'},
+ title: {type: 'string', id: true},
body: {type: 'string'}
},
project: {
- title: {type: 'string'},
+ title: {type: 'string', id: true},
index: {type: 'integer'},
category: {type: 'enum'},
body: {type: 'string'},
@@ -20,8 +20,8 @@ var app = okcms.createApp({
},
resources: [
- { type: 'page', id: 'about' },
- { type: 'page', id: 'contact' },
+ { type: 'page', data: {title: 'about'}},
+ { type: 'page', data: {title: 'contact'}},
{ type: 'project' },
],