From a0f0aa0d9d964707caa7bd4d26e98f01eeacb535 Mon Sep 17 00:00:00 2001 From: Bram van der Veen <96aa48@gmail.com> Date: Sat, 6 Jun 2015 19:23:13 +0200 Subject: [PATCH] First commit, made a web.js --- web.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 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);