adding a getRouter method for controller