public async Task <IActionResult> getDiscoveredLocations(int userId)
        {
            if (userId != int.Parse(User.FindFirst(ClaimTypes.NameIdentifier).Value))
            {
                return(Unauthorized());
            }

            var user = await _repo.GetUser(userId);

            if (user == null)
            {
                return(Unauthorized());
            }

            var discoveredLocations = await _repo.GetDiscoveredLocations(userId);

            var discoveredLocationsToReturn = _mapper.Map <IEnumerable <DiscoveredLocationToReturnDto> >(discoveredLocations);

            return(Ok(discoveredLocationsToReturn));
        }