summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
authorjules <jules@carbonpictures.com>2017-06-02 15:42:34 +0000
committerjules <jules@carbonpictures.com>2017-06-02 15:42:34 +0000
commit5f26431f03228a85273e7f7d51abd6098ea9f2a5 (patch)
tree6a709972cbb0babd68aaa10fe277b2c843fd7451 /index.js
parent291fe3eedd9a460fc44d2ea3ea81c7d79f2dfbcf (diff)
parentdd70fa81a205304cb48bbc0494ad34c16d496ff2 (diff)
merge
Diffstat (limited to 'index.js')
-rw-r--r--index.js27
1 files changed, 9 insertions, 18 deletions
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: {