bottleneckcrm/backend/common/custom_openapi.py
Ashwin Kumar fc05248c28
revamp and upgrade to modern stack (#562)
revamp and upgrade to modern stack
2025-11-29 10:07:50 +05:30

7 lines
283 B
Python

def preprocessing_filter_spec(endpoints):
filtered = []
for path, path_regex, method, callback in endpoints:
# Remove all but DRF API endpoints
if path.startswith("/api/"):
filtered.append((path, path_regex, method, callback))
return filtered