(feat) Implemented Router middleware

Put `handler` after `params` to match the call to `route`.