How to disable default REST API endpoints and GraphQL for custom endpoint implementation #12542
-
Hi PayloadCMS team and community, I'm looking for guidance on how to completely disable the default REST API endpoints ( Background & ProblemI've encountered a significant performance and security concern with the default API behavior. When testing the endpoint
What I'm Looking ForI need to:
Questions
Current Workaround AttemptsI've tried looking for limit configuration options but couldn't find a way to set reasonable defaults or maximum limits for the REST API endpoints. Any guidance on best practices for securing PayloadCMS APIs while maintaining custom endpoint flexibility would be greatly appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Could you possibly use the |
Beta Was this translation helpful? Give feedback.
Could you possibly use the
beforeOperation
hook and adjust thereq.query.limit
value if it goes above a certain number?