Run different permission_callback depending on HTTP method of custom REST API endpoint

Run different permission_callback depending on HTTP method of custom REST API endpoint