async def METHOD_NAME(self):
    if self.url.endswith("metadata.json"):
        return json.dumps(self.metadata).encode("utf-8")
    else:
        url = self.url.split("/")
        directory = url[len(url) - 2]
        file = url[len(url) - 1].replace(".json", "")
        return json.dumps(self.db[directory][file]).encode("utf-8")