Skip to content

Commit

Permalink
[ControllerWebAPI] I'm a teapot
Browse files Browse the repository at this point in the history
  • Loading branch information
Capella87 committed Feb 2, 2025
1 parent bc302a0 commit d2b7935
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ControllerWebAPI/EasterEggController.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using Microsoft.AspNetCore.Mvc;

namespace ControllerWebAPI.Controllers;

public class EasterEggController : ControllerBase
{
[HttpGet("/teapot")]
public async Task<IActionResult> Index()
{
return await Task.FromResult(StatusCode(StatusCodes.Status418ImATeapot, "I'm a teapot"));
}
}

0 comments on commit d2b7935

Please sign in to comment.