Added checkIfRouteIsAllowed which reads config.routes.allowedmethods