From f3d4f84fde24bb92e7cf6a22d94a703c753f3cbe Mon Sep 17 00:00:00 2001 From: Rory& Date: Fri, 14 Aug 2026 05:21:15 +0200 Subject: Working files and symlinks? --- Rhea/Controllers/MetaController.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Rhea/Controllers/MetaController.cs (limited to 'Rhea/Controllers/MetaController.cs') diff --git a/Rhea/Controllers/MetaController.cs b/Rhea/Controllers/MetaController.cs new file mode 100644 index 0000000..ca20e99 --- /dev/null +++ b/Rhea/Controllers/MetaController.cs @@ -0,0 +1,17 @@ +using Microsoft.AspNetCore.Mvc; + +namespace Rhea.Controllers; + +[ApiController] +public class MetaController(RheaConfiguration cfg) : ControllerBase +{ + [HttpGet("/nix-cache-info")] + public async Task GetNixCacheInfo() + { + return $""" + StoreDir: {cfg.StorePath} + WantMassQuery: 1 + Priority: 5 + """; + } +} \ No newline at end of file -- cgit 1.5.1