diff --git a/modules/views/index.jade b/modules/views/index.jade deleted file mode 100644 index 7896851..0000000 --- a/modules/views/index.jade +++ /dev/null @@ -1,4 +0,0 @@ -div#main - div#title depressionbot web interface - p - | Bitch please diff --git a/modules/views/layout.jade b/modules/views/layout.jade deleted file mode 100644 index 293b43e..0000000 --- a/modules/views/layout.jade +++ /dev/null @@ -1,6 +0,0 @@ -!!! 5 -html(lang: 'en') - head - meta(charset: 'utf-8') - title depressionbot web interface - body!= body diff --git a/modules/web.js b/modules/web.js index dc71980..5746634 100644 --- a/modules/web.js +++ b/modules/web.js @@ -1,20 +1,20 @@ var express = require('express'); -var app = express.createServer(); -var pub = '../public'; - -app.use(express.compiler({ src: pub, enable: ['sass'] })); -app.use(express.static(pub)); -app.set('view engine', 'jade'); var webInterface = function(dbot) { var dbot = dbot; + var pub = '../public'; + var app = express.createServer(); + + app.use(express.compiler({ src: pub, enable: ['sass'] })); + app.use(express.static(pub)); + app.set('view engine', 'jade'); + app.get('/', function(req, res) { res.render('index', { }); }); app.listen(1337); - return { }; };