From 91d70fea997d5aa20b1e70b70a91d6f952b24937 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 27 Dec 2017 12:48:54 +0100 Subject: correct response --- lib/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index 6bdb722..459b304 100644 --- a/lib/index.js +++ b/lib/index.js @@ -91,7 +91,11 @@ site.init = function(){ tag: sanitize(req.body.tag) || 'plop', remote_addr: req.ip || '127.0.0.1', }).then(function(image){ - res.json(image) + res.json({ + success: true, + size: req.file.size, + url, + }) }) } }) -- cgit v1.2.3-70-g09d2