[TIC-Web] fix the result of RESTful api 51/128751/1
authorChangHyun Lee <leechwin.lee@samsung.com>
Thu, 11 May 2017 08:00:46 +0000 (17:00 +0900)
committerChangHyun Lee <leechwin.lee@samsung.com>
Thu, 11 May 2017 08:00:46 +0000 (17:00 +0900)
- fix the result value of '/api/exports/' api

Change-Id: Ibb5b71edfb3e0aefc782666b9ef941244933c21d
Signed-off-by: ChangHyun Lee <leechwin.lee@samsung.com>
controller/ticcore.js
public/src/js/page/export.js

index d3e664b..490132b 100644 (file)
@@ -161,6 +161,7 @@ ticcore.getExports = function getExports(req, res) {
             data += chunk;
         });
         ticCoreRes.on('end', function () {
+            data = data.replace(AppConfig.TIC_WEB.PATH, AppConfig.TIC_WEB.PATH_ABSTRACT);
             res.send(data);
         });
     });
index 446371c..7e140de 100644 (file)
@@ -44,8 +44,7 @@ define([
             if (res.result === 'false') {
                 return Promise.reject(res.message);
             } else {
-                var recipePath = res.data.path.replace('var/tmp/tic-web', 'tic');
-                $('#tic-export-recipe').attr('href', recipePath)[0].click();
+                $('#tic-export-recipe').attr('href', res.data.path)[0].click();
             }
         })
         .catch(function (err) {