7 lines
283 B
Python
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
|