From: Aron kim Date: Fri, 25 Sep 2020 02:19:38 +0000 (-0700) Subject: [D2D] Change path for app routing. X-Git-Tag: accepted/tizen/unified/20200928.100321^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b778ba1661387e54d89fe9007fa0831db1def900;p=platform%2Fframework%2Fweb%2Fwrtjs.git [D2D] Change path for app routing. The installation path of the built-in deviceWebServer is changed. Reroute according to the changed path. Change-Id: I54b9004811a14e22aba5263921510b1798e43412 Signed-off-by: Aron kim --- diff --git a/d2d_app/service/app_router.js b/d2d_app/service/app_router.js index f9dd99d..56a5c51 100644 --- a/d2d_app/service/app_router.js +++ b/d2d_app/service/app_router.js @@ -3,7 +3,7 @@ var express = require('express'); class AppRouter { constructor(app, path) { var appRouter = express.Router(); - appRouter.use(express.static(__dirname + '/../../../../' + path + '/res/wgt/client')); + appRouter.use(express.static('/opt/usr/globalapps/' + path + '/res/wgt/client')); appRouter.get('/', (req, res) => { res.redirect('client.html');