summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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,
+ })
})
}
})