First commit, made a web.js
This commit is contained in:
commit
a0f0aa0d9d
21
web.js
Normal file
21
web.js
Normal 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);
|
Loading…
Reference in a new issue