From 96435ba60e22bf0a82d777fc271cb6e1e2edc3f5 Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Sun, 4 Dec 2022 14:16:57 +0900 Subject: fea: !WIP nrk radio --- src/Endpoints/CreateRadioIndex.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/Endpoints/CreateRadioIndex.cs (limited to 'src/Endpoints/CreateRadioIndex.cs') 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 HandleASync() { + await _radio.CreateIndex(); + return Ok(); + } +} \ No newline at end of file -- cgit v1.3