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

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

index f9dd99d..56a5c51 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');