flatiron/flatiron — Issue #33: Order of flatiron plugin usage makes different behavior
Author: paulshapiro
Created: 2012-03-05 15:54:17+00:00
State: open

If I go

app.use(flatiron.plugins.http, {
// CLI options
});
app.use(flatiron.plugins.cli, {
// CLI options
});

then down here access some stuff in app.argv, and then later try to mount and access a route (say, '/') with director, I can't access the route, and it produces an Error: Not found on access, as if the route wasn't mounted.

If I swap the order of my app.use statements, it seems to work. Maybe plugins.cli overwrites something that plugins.http needs to set up the routes?

Let me know if any addtl. details needed.