Skip to content

Instantly share code, notes, and snippets.

@albertstartup
Created October 25, 2015 09:33
Show Gist options
  • Save albertstartup/0aa196e84b1c6717092b to your computer and use it in GitHub Desktop.
Save albertstartup/0aa196e84b1c6717092b to your computer and use it in GitHub Desktop.
var express = require('express');
var app = express();
app.get('/yes', function (req, res) {
res.send('thanks!');
console.log('student got it, stop vib');
});
app.get('/no', function (req, res) {
res.send('thanks!');
console.log('student didnt get it, vibrate');
});
var server = app.listen(3000, function () {
var host = server.address().address;
var port = server.address().port;
console.log('Example app listening at http://%s:%s', host, port);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment