Added registerRoutes method