From 50868ae494c02ca194306c872fe895aa4a8c4dc6 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 17 Jun 2017 10:18:25 +0200 Subject: add field for price --- db.json | 9 +++++++++ index.js | 6 ++++++ 2 files changed, 15 insertions(+) diff --git a/db.json b/db.json index a7f5428..0cf741e 100644 --- a/db.json +++ b/db.json @@ -2640,5 +2640,14 @@ "__index": 0, "dateCreated": "Thu, 18 May 2017 20:41:15 GMT" } + ], + "fmf": [ + { + "id": "fmf", + "title": "FMF", + "price": "5.00", + "__index": 0, + "dateCreated": "Sat, 17 Jun 2017 08:18:17 GMT" + } ] } \ No newline at end of file diff --git a/index.js b/index.js index d913fcd..dc81d80 100644 --- a/index.js +++ b/index.js @@ -75,6 +75,11 @@ var app = okcms.createApp({ streams: {type: 'link-list'}, disabled: {type: 'flag'}, }, + fmf: { + id: {type: 'string', hidden: true}, + title: {type: 'string'}, + price: {type: 'string'}, + }, }, resources: [ @@ -84,6 +89,7 @@ var app = okcms.createApp({ { type: 'stream' }, { type: 'drone' }, { type: 'about' }, + { type: 'fmf' }, ], views: { -- cgit v1.2.3-70-g09d2