From 3319b60ca946a0fad11da52bb3fee4aa66afb62c Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 31 Dec 2016 05:57:34 +0100 Subject: image display type in backend --- examples/index.js | 8 ++++++++ examples/lib/okpush/index.js | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/index.js b/examples/index.js index 15de909..92db7c0 100644 --- a/examples/index.js +++ b/examples/index.js @@ -21,6 +21,14 @@ var app = okcms.createApp({ // } // } // }, + dashboard: { + resources: { + flour: { + display: 'image', + field: 'image', + } + } + } }, schemas: { diff --git a/examples/lib/okpush/index.js b/examples/lib/okpush/index.js index 6ef83c6..eb8e240 100644 --- a/examples/lib/okpush/index.js +++ b/examples/lib/okpush/index.js @@ -99,7 +99,10 @@ function OKPush (options) { }) // should work without middleware - router.post('/add', function (req, res) { + router.post('/subscribe', function (req, res) { + // add a key + }) + router.post('/unsubscribe', function (req, res) { // add a key }) -- cgit v1.2.3-70-g09d2