I have a custom module to create a custom Rest API resource. I want to remove the authentication and make it without required authentication.
In my file
this is my code
This is working fine but with authentication. When trying to remove this lines
I got an error. So what is the correct way to remove this authentication?