Disable listing of collections for public users. Listings for admins and users with app access to the Data Studio are always allowed.
npm install directus-extension-disable-listing
Add the EXT_DISABLE_LISTING_BYPASS_ROUTES
environment variable with the route name separated by commas. For
collections within the items
route, prefix with items/
.
Defaults to auth
as it's required for the Data Studio to function.
Example: auth,items/articles,items/comments
Add the EXT_DISABLE_LISTING_BYPASS_METHODS
environment variable with the HTTP method separated by commas.
Defaults to no method being bypassed.
Example: get,post
Add the EXT_DISABLE_LISTING_ALLOW_AUTHENTICATED
environment variable with a boolean value.
Defaults to false
.
Example: true
GPLv3 License. See the LICENSE file.