about summary refs log tree commit diff
path: root/OsuFederatedBeatmapApi/Controllers/BeatmapRepositoryController.cs
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-10 21:24:28 +0200
committerEmma [it/its]@Rory& <root@rory.gay>2023-10-10 21:44:30 +0200
commit06be7bed0c640c21503f75ce834a6fde2fc905ba (patch)
treeeff4ef92267dd79ce308ec2df348ae6ef50e8ecc /OsuFederatedBeatmapApi/Controllers/BeatmapRepositoryController.cs
downloadOsuFederatedBeatmapApi-06be7bed0c640c21503f75ce834a6fde2fc905ba.tar.xz
Initial commit
Diffstat (limited to 'OsuFederatedBeatmapApi/Controllers/BeatmapRepositoryController.cs')
-rw-r--r--OsuFederatedBeatmapApi/Controllers/BeatmapRepositoryController.cs24
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();
+	}
+}