def METHOD_NAME(self) -> Dict[str, Resource]:
    # We need to manually set the resource tree to include media, the
    # default only does `/_matrix/client` APIs.
    return {"/_matrix/media": self.hs.get_media_repository_resource()}