From d8c7ab76f7dfcd51f2a78ad6f4059d148c6cc3b3 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 10 Jun 2019 07:18:45 +0000 Subject: [PATCH] [Trunk|Services]: UploadService: Tiny response is a plain text. git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@56032 d315682c-612b-4755-9ff5-7f18f6832af3 --- services/upload/uploadService.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/services/upload/uploadService.js b/services/upload/uploadService.js index d14070c7..e432c11c 100644 --- a/services/upload/uploadService.js +++ b/services/upload/uploadService.js @@ -125,9 +125,7 @@ app.get('/tiny', function (req, res) { TinyURL.shorten(req.query.url, function(res1, err) { if (err) console.log(err) - res.send({ - tinyUrl: res1 - }); + res.send(res1); }); });