get functions in router,  routeObj functional