flatiron/director — pull request #102 by cpsubrian (2012-05-10 23:26:03+00:00)
Title: Allows http router.attach() to be called more than once.

In a flatiron app I am working on, I would like to be able to call app.router.attach() multiple times (from different broadway plugins). This small change would allow that to happen.

Tests pass, however, this IS technically an API change IF someone was calling attach() multiple times intentionally overriding the old handler.

One possible addition that I did not include would be an api to clear the attached handlers. Not sure if that is necessary or not and what form that clear should take (for example, could be cleared with an empty call to attach()).