From dd70fa81a205304cb48bbc0494ad34c16d496ff2 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Fri, 2 Jun 2017 11:40:02 -0400 Subject: buildddd --- index.js | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) (limited to 'index.js') diff --git a/index.js b/index.js index e03b1e2..f56a486 100644 --- a/index.js +++ b/index.js @@ -2,19 +2,6 @@ var okcms = require('okcms') var path = require('path') var isProduction = process.env.OK_PRODUCTION === 'true' -var viewConfig = { template: 'index', - data: [ - {type: 'timeline', query: '*'}, - {type: 'page', query: '*'}, - {type: 'stream', query: '*'}, - {type: 'drone', query: '*'}, - {type: 'about', query: '*'}, - ] -} - -var photoConfig = { - template: 'photo', -} var app = okcms.createApp({ @@ -92,11 +79,15 @@ var app = okcms.createApp({ ], views: { - '/': viewConfig, - '/timeline': viewConfig, - '/timeline/:id': viewConfig, - '/page/:id': viewConfig, - '/photo/:id': photoConfig, + '/': { template: 'index' }, + '/information/': { template: 'index' }, + '/drones/': { template: 'index' }, + '/livestream/': { template: 'index' }, + '/contact/': { template: 'index' }, + '/timeline/': { template: 'index' }, + '/timeline/:id': { template: 'index' }, + '/page/:id': { template: 'index' }, + '/photo/:id': { template: 'photo' }, }, services: { -- cgit v1.2.3-70-g09d2