Adds method filter method for Endpoints.