mirror of
https://github.com/reality/dbot.git
synced 2024-11-24 04:49:25 +01:00
24 lines
467 B
JavaScript
24 lines
467 B
JavaScript
|
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;
|
||
|
|
||
|
app.get('/', function(req, res) {
|
||
|
res.render('index', { });
|
||
|
});
|
||
|
|
||
|
app.listen(1337);
|
||
|
|
||
|
return { };
|
||
|
};
|
||
|
|
||
|
exports.fetch = function(dbot) {
|
||
|
return webInterface(dbot);
|
||
|
};
|