How to add only urls with POST method in the httpInterceptor's allowed list?


I have an api route like below.


I am using same route for get and post methods. I only want to add authentication to the post method. But if I add the /api/images into the allowed_list then the get method also asks for authentication.
I only want post method to be authenticated.

Could any one please let me know how to do that?