pass api path on index viewmodel