Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion templates/app/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ io.sockets.on('connection', function(socket){
/////// ADD ALL YOUR ROUTES HERE /////////

server.get('/', function(req,res){

console.log('Your GET Params: ');
console.log('req.query: ' + JSON.stringify(req.query));

res.render('index.jade', {
locals : {
title : 'Your Page Title'
Expand All @@ -76,7 +80,7 @@ server.get('/500', function(req, res){

//The 404 Route (ALWAYS Keep this as the last route)
server.get('/*', function(req, res){
throw new NotFound;
throw new NotFound('Your Error Message');
});

function NotFound(msg){
Expand Down