Add basic randomizer

This commit is contained in:
2025-02-22 13:01:35 -06:00
parent 6bdf0a67cb
commit c9407bd0bf
9 changed files with 127 additions and 1 deletions

View File

@@ -3,10 +3,17 @@
using Microsoft.AspNetCore.Mvc;
public class GenerateController : Controller {
public GenerateController(Randomizer randomizer) {
this.Randomizer = randomizer;
}
private Randomizer Randomizer { get; }
[Route("/generate")]
[HttpPost]
public ActionResult Generate(SeedSettings settings) {
return Content("Hello world");
var result = this.Randomizer.Randomize();
return Content(result);
}
}
}