Is there an easy way (built-in) to use the same access logic for custom endpoints?
yes
or
Star
Discord
online
Get dedicated engineering support directly from the Payload team.