Skip to content

Commit

Permalink
chore: Remove unused PostHero method from HeroController for code cle…
Browse files Browse the repository at this point in the history
…anliness ✂️
  • Loading branch information
0GiS0 committed Dec 30, 2024
1 parent 95be31c commit 1ae12f0
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Controllers/HeroController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,6 @@ public ActionResult PutHero(int id, Hero hero)

}

// POST: api/Hero
// To protect from overposting attacks, see https://go.microsoft.com/fwlink/?linkid=2123754
[HttpPost]
public ActionResult<Hero> PostHero(Hero hero)
{
_heroRepository.Add(hero);
return Ok(hero);
}

// DELETE: api/Hero/5
[HttpDelete("{id}")]
Expand Down

0 comments on commit 1ae12f0

Please sign in to comment.