add json route

This commit is contained in:
2023-10-29 19:01:13 -03:00
parent d5d2ab4956
commit 77aa085b0c
7 changed files with 94 additions and 16 deletions

View File

@@ -22,5 +22,11 @@ namespace TCC.Controllers
return Ok(sum);
}
[HttpGet("json")]
public async Task<IActionResult> GetHarmonicProgression([FromQuery] int n)
{
return Ok(new { message = "Hello World!" });
}
}
}

View File

@@ -11,7 +11,7 @@ namespace TCC.Controllers
[HttpGet("ok")]
public async Task<IActionResult> ReturnOk()
{
return Ok(new { status = 200 });
return Ok();
}
}
}