Skip to content

Instantly share code, notes, and snippets.

@ruzz311
Created December 1, 2011 06:47
Show Gist options
  • Save ruzz311/1414413 to your computer and use it in GitHub Desktop.
Save ruzz311/1414413 to your computer and use it in GitHub Desktop.
Routing example
// 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