summaryrefslogtreecommitdiff
path: root/lib/index.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-27 12:48:54 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-27 12:48:54 +0100
commit91d70fea997d5aa20b1e70b70a91d6f952b24937 (patch)
tree931039d6471cb28da151b2f62413cacead3c365d /lib/index.js
parent994f212275f71cc48c4938f0e0cc1fa0dc4eee38 (diff)
correct response
Diffstat (limited to 'lib/index.js')
-rw-r--r--lib/index.js6
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,
+ })
})
}
})