First commit, made a web.js

This commit is contained in:
Bram van der Veen 2015-06-06 19:23:13 +02:00
commit a0f0aa0d9d

21
web.js Normal file
View file

@ -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);