How I Can Liberate Public Access Just For One Endpoint On The Api?

I need to liberate public access to api, but only in one endpoint. I know there a configuration in config.local, thats allow you to liberate this but for all endpoints at once