(yet custom) pat-rest uses pat-ajax-before event