var express = require("express");
var app = express();


// Static files directory
app.use(express.static('public'));


// Request handlers
app.get('/', function(req, res) {
    res.send('Hello');
});

var pages = ['notman', 'greenhouse'];

app.get('/:identifier', function(req, res) {
	if (pages.indexOf(req.params.identifier) != -1) {
		res.sendfile("public/index.html")
	} else {
		res.status(404).send('Not found');
	}
});


 

var port = process.env.port || 3000;
app.listen(port);
var express = require("express");
var app = express();


// Static files directory
app.use(express.static('public'));


// Request handlers
app.get('/', function(req, res) {
    res.redirect(307, '/notman');
});

var pages = ['notman', 'greenhouse'];

app.get('/:identifier', function(req, res) {
	if (pages.indexOf(req.params.identifier) != -1) {
		res.sendfile("public/client.html")
	} else {
		res.status(404).send('Not found');
	}
});


 

var port = process.env.port || 3000;
app.listen(port);
Modify the server to redirect to the notman area webclient.