internal/legacy: implement charm-info endpoint