evantahler/actionhero — pull request #387 by innerdvations (2014-05-24 15:42:10+00:00)
Title: add priorites for preprocess and postprocess middleware

Add functions actions.addPreProcessor(func, priority) and actions.addPostProcessor(func, priority) that allow middleware to be called in a specified order. Leaves the old array.push method intact so no existing code needs to be modified.

Add tests for new functions.