Added CRUDKit registry functionality.

This commit is contained in:
Yaro Kasear 2025-09-15 08:26:08 -05:00
parent cb74511677
commit 64e8d6871f
5 changed files with 67 additions and 23 deletions

View file

@ -85,7 +85,7 @@ def _build_href(spec: Dict[str, Any], row: Dict[str, Any], obj) -> Optional[str]
print(f"[render_table] url_for failed: endpoint={spec}: params={params}")
return None
try:
return url_for(spec["endpoint"], **params)
return url_for('crudkit.' + spec["endpoint"], **params)
except Exception as e:
print(f"[render_table] url_for failed: endpoint={spec['endpoint']} params={params} err={e}")
return None