created method getRoutes to be able to analyze protected property