Fixed php endpoints