blob: ca20e99091e14d17c3ba6bcebc737ceda0bc404c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
""";
}
}
|