1
2
3
4
5
6
7
8
9
10
11
12
13
14
var Connect = require('connect');
var sys = require('sys');

/* Main event, using the connect middleware to run the server. */
Connect(
	Connect.logger(),
	Connect.responseTime(),
	Connect.router(function(app) {
		app.get(/\/(.[^\/]+)\/(.[^\/]+)\/?(.[^\/]+)?\/?/gi, function(req, res, params) { // Match files.
			res.writeHead(200);
			res.end('success');
		});
	})
).listen(8188);