/** POST: add a new hero to the database */
addHero (hero: Hero): Observable {
  return this.http.post(this.heroesUrl, hero, httpOptions)
    .pipe(
      catchError(this.handleError('addHero', hero))
    );
}