INNER CODE UNIT · Python
parse_path
lishuangqiang/AI-Meeting · skills/xunzhi-repo-map/scripts/extract_api_index.py:17
def parse_path(annotation: str | None) -> str:
if not annotation:
return ""
parts = STRING_RE.findall(annotation)
return parts[0] if parts else ""
@dataclass
class ApiRow:
module: str
file: str
controller: str
mapping: str
method: str
auth: str
note: str