diff options
Diffstat (limited to 'src/Endpoints/GetRadioSeriesList.cs')
| -rw-r--r-- | src/Endpoints/GetRadioSeriesList.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Endpoints/GetRadioSeriesList.cs b/src/Endpoints/GetRadioSeriesList.cs new file mode 100644 index 0000000..7898f25 --- /dev/null +++ b/src/Endpoints/GetRadioSeriesList.cs @@ -0,0 +1,13 @@ +using Microsoft.AspNetCore.Mvc; + +namespace I2R.LightNews.Endpoints; + +public class RadioSearchEndpoint : EndpointBase +{ + public RadioSearchEndpoint() { } + + [HttpGet("~/radio-series")] + public async Task<ActionResult> HandleAsync(string q) { + return Ok(RadioIndexDb.GetSeries(q)); + } +}
\ No newline at end of file |
