revert server code

This commit is contained in:
Paul Sori 2018-10-23 06:29:43 -04:00
parent 565809e812
commit 838bf174ed

View File

@ -51,19 +51,19 @@ exports.serveit = function (program) {
// Give access to public folder
mstream.use('/public', express.static(fe.join(__dirname, program.userinterface)));
// Serve the webapp
mstream.get('/', (req, res) => {
mstream.get('/', function (req, res) {
res.sendFile(fe.join(program.userinterface, 'mstream.html'), { root: __dirname });
});
// It Really Whips The Llama's Ass
mstream.get('/winamp', (req, res) => {
mstream.get('/winamp', function (req, res) {
res.sendFile(fe.join(program.userinterface, 'winamp.html'), { root: __dirname });
});
// Serve Shared Page
mstream.all('/shared/playlist/*', (req, res) => {
mstream.all('/shared/playlist/*', function (req, res) {
res.sendFile(fe.join(program.userinterface, 'shared.html'), { root: __dirname });
});
// Serve Jukebox Page
mstream.all('/remote', (req, res) => {
mstream.all('/remote', function (req, res) {
res.sendFile(fe.join(program.userinterface, 'remote.html'), { root: __dirname });
});
}