diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-12-04 06:16:57 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-12-04 06:16:57 +0100 |
| commit | 96435ba60e22bf0a82d777fc271cb6e1e2edc3f5 (patch) | |
| tree | 6e19ee92176d854deb51127bba1b700cf1ffbc22 /src/Endpoints/CreateRadioIndex.cs | |
| parent | 62a48e3d162eb6e24772097617f9dd88418c796c (diff) | |
| download | lettnytt-96435ba60e22bf0a82d777fc271cb6e1e2edc3f5.tar.xz lettnytt-96435ba60e22bf0a82d777fc271cb6e1e2edc3f5.zip | |
fea: !WIP nrk radio
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 |
