(feat) Implemented Router middleware

This comment should be on line 2.