summary refs log tree commit diff
path: root/Rhea/Controllers/MetaController.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-08-14 05:21:15 +0200
committerRory& <root@rory.gay>2026-08-14 05:21:15 +0200
commitf3d4f84fde24bb92e7cf6a22d94a703c753f3cbe (patch)
treed50b915a252fdb2e5d96b8ff9c6607a9cf9b78a2 /Rhea/Controllers/MetaController.cs
downloadRhea-f3d4f84fde24bb92e7cf6a22d94a703c753f3cbe.tar.xz
Working files and symlinks?
Diffstat (limited to 'Rhea/Controllers/MetaController.cs')
-rw-r--r--Rhea/Controllers/MetaController.cs17
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