New webapp folder

This commit is contained in:
IrosTheBeggar 2017-04-05 13:19:50 -04:00
parent 6a11fe0e5a
commit ad49ae2806
2 changed files with 4 additions and 3 deletions

View File

@ -35,15 +35,15 @@ module.exports = function (program) {
mstream.use( '/public', express.static(fe.join(__dirname, program.userinterface) ));
// Serve the webapp
mstream.get('/', function (req, res) {
res.sendFile( fe.join('public', 'mstream.html'), { root: __dirname });
res.sendFile( fe.join(program.userinterface, 'mstream.html'), { root: __dirname });
});
// Serve Shared Page
mstream.all('/shared/playlist/*', function (req, res) {
res.sendFile( fe.join('public', 'shared.html'), { root: __dirname });
res.sendFile( fe.join(program.userinterface, 'shared.html'), { root: __dirname });
});
// Serve Jukebox Page
mstream.all('/remote', function (req, res) {
res.sendFile( fe.join('public', 'remote.html'), { root: __dirname });
res.sendFile( fe.join(program.userinterface, 'remote.html'), { root: __dirname });
});
}

1
webapp2/mstream.html Normal file
View File

@ -0,0 +1 @@
<div>New Webapp Goes Here</div>