Revert "removed the branches endpoint"

This reverts commit f7450cdb6b195e5220b6568f2fbf07db88171dd0.