I would like to know how I would do to create a conditional if according to the route that the user is
refreshData (){ var params = {}; for (var k