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>
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');