How to filter content from find apis so that only owner can see that

I’m doing the same. I have other content-types as well, that depends upon this Author field. I have to repeat this code.
I thought of having some other approach.

Anyway, thanks.