diff --git a/bin/router.js b/bin/router.js deleted file mode 100644 index 74f9d90..0000000 --- a/bin/router.js +++ /dev/null @@ -1,10 +0,0 @@ -var express = require('express'); -var router = express.Router(); - -router.get('', function( req, res ) { - res.send('
' + - 'It works! Now point your app and monitor app to connect to this server.
' + - ''); -}); - -module.exports = router; diff --git a/bin/worker.js b/bin/worker.js index 76568de..5ca41b8 100644 --- a/bin/worker.js +++ b/bin/worker.js @@ -6,7 +6,11 @@ module.exports.run = function(worker) { var scServer = worker.scServer; httpServer.on('request', app); - app.use('/', require('./router')); + app.get('/', function(req, res) { + res.send('' + + 'It works! Now point your app and monitor app to connect to this server.
' + + ''); + }); scServer.addMiddleware(scServer.MIDDLEWARE_EMIT, function (socket, channel, data, next) { if (channel.substr(0, 3) === 'sc-' || channel === 'respond' || channel === 'log') {