a router that matches paths with packages based on config.