Created
December 1, 2011 06:47
-
-
Save ruzz311/1414413 to your computer and use it in GitHub Desktop.
Routing example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Routes | |
// General routes | |
app.all( '/remote(/*)?', Security.simple_auth ); | |
app.all( '/presenter(/*)?', Security.simple_auth ); | |
// General User | |
app.get( '/', function( req, res ) { | |
res.render( 'presentation/node', { | |
title: 'Node - PEEEYYYAAAAAHHH' | |
}); | |
}); | |
// Remote view | |
app.get( '/remote', function( req, res ) { | |
res.render( 'presentation/node', { | |
title: 'Node Remote - Upfront', | |
layout: 'layouts/remote' | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment