mirror of
https://github.com/ivanch/tcc.git
synced 2025-09-13 16:01:50 +00:00
add json route
This commit is contained in:
@@ -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!" });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -11,7 +11,7 @@ namespace TCC.Controllers
|
||||
[HttpGet("ok")]
|
||||
public async Task<IActionResult> ReturnOk()
|
||||
{
|
||||
return Ok(new { status = 200 });
|
||||
return Ok();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user