Adds method filtering in endpoint