From e04236546cc0978c892bbb360ff909b3460d67a6 Mon Sep 17 00:00:00 2001 From: Sean Fridman Date: Fri, 3 Apr 2015 12:40:03 -0400 Subject: Queries now properly backed by resources --- examples/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples/index.js') 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'} } } -- cgit v1.2.3-70-g09d2