seznam/ima

Add support for `next` callback in route middlewares.

jsimck opened this issue · 1 comments

Similarly to the express, the route middlewares would work differently, where by default you will be stuck on it's execution, until the next callback is called.

This allows for more control inside the middlewares and enables us to create redirect middlewares and other features which should not result in the rendering of the page itself.

Implemented in IMA@19