Create endpoint filter hook

Resolves #2