initializing class router

so we only server requests if we have a route for the path