mirror of
https://github.com/reality/dbot.git
synced 2025-01-11 20:42:37 +01:00
revert web shit
This commit is contained in:
parent
23d0a76c83
commit
27e79641d5
@ -12,18 +12,7 @@ var webInterface = function(dbot) {
|
|||||||
app.get('/', function(req, res) {
|
app.get('/', function(req, res) {
|
||||||
res.render('index', { 'name': dbot.config.name });
|
res.render('index', { 'name': dbot.config.name });
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log(Object.keys(app));
|
|
||||||
|
|
||||||
app.configure(function(){
|
|
||||||
app.use(function(err, req, res, next) {
|
|
||||||
console.log('Web encountered an error: ' + err);
|
|
||||||
});
|
|
||||||
});
|
|
||||||
app.on('error', function(err) {
|
|
||||||
console.log('Web encountered an error: ' + err);
|
|
||||||
});
|
|
||||||
|
|
||||||
var server = app.listen(dbot.config.web.webPort);
|
var server = app.listen(dbot.config.web.webPort);
|
||||||
|
|
||||||
this.reloadPages = function() {
|
this.reloadPages = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user