1var express = require('express');
2var app = express();
3var path = require('path');
4
5// viewed at http://localhost:8080
6app.get('/', function(req, res) {
7 res.sendFile(path.join(__dirname + '/index.html'));
8});
9
10app.listen(8080);
1app.get('/test', function(req, res) {
2 res.sendFile('test.html', {root: __dirname })
3});