def METHOD_NAME(self):
    parsed_url = parse.urlparse(self.path)
    if parsed_url.path == "/v2/snaps":
        self._handle_snaps()
    elif parsed_url.path.startswith("/v2/snaps/") and parsed_url.path.endswith(
        "file"
    ):
        self._handle_snap_file(parsed_url)
    elif parsed_url.path.startswith("/v2/snaps/"):
        self._handle_snap_details(parsed_url)
    elif parsed_url.path == "/v2/find":
        self._handle_find(parsed_url)
    else:
        self.wfile.write(parsed_url.path.encode())