1 files changed, 17 insertions, 0 deletions
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<string> GetNixCacheInfo()
+ {
+ return $"""
+ StoreDir: {cfg.StorePath}
+ WantMassQuery: 1
+ Priority: 5
+ """;
+ }
+}
\ No newline at end of file
|