diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-12-27 12:48:54 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-12-27 12:48:54 +0100 |
| commit | 91d70fea997d5aa20b1e70b70a91d6f952b24937 (patch) | |
| tree | 931039d6471cb28da151b2f62413cacead3c365d | |
| parent | 994f212275f71cc48c4938f0e0cc1fa0dc4eee38 (diff) | |
correct response
| -rw-r--r-- | lib/index.js | 6 |
1 files changed, 5 insertions, 1 deletions
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, + }) }) } }) |
