evanmiller/ChicagoBoss — pull request #150 by maxlapshin (2012-09-03 15:41:04+00:00)
Title: Routes must be in the same order as in config

When I make this config:

{"/login", [{controller, "login"}, {action, "login"}]}.
{"/(?.*)", [{controller, "pages"}, {action, "page"}, {page_id, '$page_id'}]}.

I can't match /login, because catch-all route is first in ets table.

This commit fixes this bug.