(feat) Implemented Router middleware