From: Aron kim Date: Fri, 25 Sep 2020 02:26:11 +0000 (-0700) Subject: [D2D] Change path for app routing. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2ab2d306934a58f68e61f42ea18d94c5cbbae5a0;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: I12e76485db23476dcc49729cac475c678fdc1fe0 Signed-off-by: Aron kim --- diff --git a/d2d_app/service/app_router.js b/d2d_app/service/app_router.js index f9dd99d9..56a5c511 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');