Skip to content

Instantly share code, notes, and snippets.

@ovaillancourt
Created April 4, 2012 13:59
Show Gist options
  • Save ovaillancourt/2301291 to your computer and use it in GitHub Desktop.
Save ovaillancourt/2301291 to your computer and use it in GitHub Desktop.
Mounted app working
var express = require('express');
var app = express.createServer();
someApp = express.createServer();
someApp.get('/', function(req, res) {
res.end('Reached / in someApp');
});
app.use('/foobar', someApp);
app.get('/', function(req, res) {
res.end('Reached / in app');
});
app.listen(8080);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment