var express = require('express'),
	app = express(),
	port = process.env.PORT || 3000,
	mongoose = require('mongoose'),
	Camera = require('./api/models/cameraDBModel'),
	bodyParser = require('body-parser');

mongoose.Promise = global.Promise;
mongoose.connect('mongodb://localhost/toy');

app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());

var routes = require('./api/routes/cameraDBRoutes');
routes(app);

app.listen(port);

console.log('CameraDB RESTfull API server start on: ' + port);


@@ -360,16 +360,111 @@
 json());
+%0Aapp.use(function(req, res) %7B%0A  res.status(404).send(%7Burl: req.originalUrl + ' not found'%7D)%0A%7D);
 %0A%0Avar ro

Add error page