diff options
Diffstat (limited to 'src/Endpoints/CreateRadioIndex.cs')
| -rw-r--r-- | src/Endpoints/CreateRadioIndex.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/Endpoints/CreateRadioIndex.cs b/src/Endpoints/CreateRadioIndex.cs new file mode 100644 index 0000000..1ef19ab --- /dev/null +++ b/src/Endpoints/CreateRadioIndex.cs @@ -0,0 +1,18 @@ +using Microsoft.AspNetCore.Mvc; + +namespace I2R.LightNews.Endpoints; + +public class RadioSearchEndpoint : EndpointBase +{ + private readonly NrkRadioService _radio; + + public RadioSearchEndpoint(NrkRadioService radio) { + _radio = radio; + } + + [HttpGet("~/create-radio-index")] + public async Task<ActionResult> HandleASync() { + await _radio.CreateIndex(); + return Ok(); + } +}
\ No newline at end of file |
