mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 03:33:07 +01:00
remake the app inside the module
This commit is contained in:
parent
fdf576ae65
commit
75899123c9
@ -1,4 +0,0 @@
|
||||
div#main
|
||||
div#title depressionbot web interface
|
||||
p
|
||||
| Bitch please
|
@ -1,6 +0,0 @@
|
||||
!!! 5
|
||||
html(lang: 'en')
|
||||
head
|
||||
meta(charset: 'utf-8')
|
||||
title depressionbot web interface
|
||||
body!= body
|
@ -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 { };
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user