Added http endpoint hooks