Add getLocations endpoint. Get locations in dashboard using endpoint.