commit a0f0aa0d9d964707caa7bd4d26e98f01eeacb535 Author: Bram van der Veen <96aa48@gmail.com> Date: Sat Jun 6 19:23:13 2015 +0200 First commit, made a web.js diff --git a/web.js b/web.js new file mode 100644 index 0000000..c2d35c4 --- /dev/null +++ b/web.js @@ -0,0 +1,21 @@ +//web.js +var express = require('express'); +var app = express(); + +app.get('/', function (req, res) { + res.send('Hello world!'); +}); + +app.param('search', function (req, res, next, search) { + res.send('You searched for ' + search); +}); + +app.get('/rooster/:search', function (req, res) { + next(); +}); + +app.get('/over', function (req, res) { + res.send('Hier kun je lezen over werkmanrooster.'); +}); + +app.listen(1024);