mirror of
https://github.com/IrosTheBeggar/mStream.git
synced 2025-10-27 07:31:02 +00:00
revert server code
This commit is contained in:
parent
565809e812
commit
838bf174ed
@ -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 });
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user