[D2D] Change path for app routing. 40/244840/1 tizen.d2d.devel
authorAron kim <aron.kim@samsung.com>
Fri, 25 Sep 2020 02:26:11 +0000 (19:26 -0700)
committerAron kim <aron.kim@samsung.com>
Fri, 25 Sep 2020 02:26:11 +0000 (19:26 -0700)
The installation path of the built-in deviceWebServer is changed.
Reroute according to the changed path.

Change-Id: I12e76485db23476dcc49729cac475c678fdc1fe0
Signed-off-by: Aron kim <aron.kim@samsung.com>
d2d_app/service/app_router.js

index f9dd99d96c052871fbf640bbbc1250fbe2dd725c..56a5c511751bdf3d9d90321cf4ae20d06eb5375b 100644 (file)
@@ -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');