summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-06-17 10:18:25 +0200
committerJules Laplace <julescarbon@gmail.com>2017-06-17 10:18:25 +0200
commit50868ae494c02ca194306c872fe895aa4a8c4dc6 (patch)
treef97d1579ea9be1a990a8a140b23ff3a4300b1c9e
parent57eaac988406416af9b7c56197bb003c194ff225 (diff)
add field for price
-rw-r--r--db.json9
-rw-r--r--index.js6
2 files changed, 15 insertions, 0 deletions
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: {