Modernize the metadata API router