php-crud-api
php-crud-api copied to clipboard
A flag to enable list of tables and fields?
Hi,
Would it be useful to add a configurable flag that can expose list of tables and fields available (eg: like a /schema endpoint)? I understand this would be a security risk, but it would be very useful for internal project use where it's not a concern. Also have a flag default to off should be safe enough.
Try adding "columns" to the the "controllers" config parameter. It does what you want.
Ahh! Yes it does work for me! Thank you @mevdschee!