We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef265d8 commit 294c4c9Copy full SHA for 294c4c9
index.js
@@ -4,18 +4,23 @@ var http = require('http');
4
var app = express();
5
var server = http.Server(app);
6
var io = require('socket.io')(server);
7
-var needle = require('needle');
8
var port = process.env.PORT || 3000;
9
+
10
var sup = require('./lib/sup')(io);
11
var heyThere = require('./lib/hey-there')(io);
12
13
-console.log(heyThere);
14
15
app.use(express.static(path.join(__dirname, 'public')));
16
+app.use('/hey-there', function(req, res){
17
+ res.sendfile('public/hey-there.html');
18
+});
19
app.use('/', function(req, res){
- res.send({'ok': true});
20
+ res.sendfile('public/sup.html');
21
22
+app.use('/sup', function(req, res){
23
24
});
25
26
server.listen(port, function(){
0 commit comments