1 files changed, 24 insertions, 0 deletions
diff --git a/OsuFederatedBeatmapApi/Controllers/BeatmapRepositoryController.cs b/OsuFederatedBeatmapApi/Controllers/BeatmapRepositoryController.cs
new file mode 100644
index 0000000..6c2bd31
--- /dev/null
+++ b/OsuFederatedBeatmapApi/Controllers/BeatmapRepositoryController.cs
@@ -0,0 +1,24 @@
+using Microsoft.AspNetCore.Mvc;
+using OsuFederatedBeatmapApi.Events.State;
+
+namespace OsuFederatedBeatmapApi.Controllers;
+
+[ApiController]
+[Route("/")]
+public class BeatmapRepositoryController(ILogger<BeatmapRepositoryController> logger, ) : ControllerBase {
+
+ [HttpGet("/beatmapset/all/info")]
+ public async IAsyncEnumerable<BeatmapSetInfo> GetAllInfo() {
+
+ }
+
+ [HttpGet("/beatmapset/{id:int}/info")]
+ public IEnumerable<WeatherForecast> Get(int id) {
+ return Enumerable.Range(1, 5).Select(index => new WeatherForecast {
+ Date = DateOnly.FromDateTime(DateTime.Now.AddDays(index)),
+ TemperatureC = Random.Shared.Next(-20, 55),
+ Summary = Summaries[Random.Shared.Next(Summaries.Length)]
+ })
+ .ToArray();
+ }
+}
|