Publisher heatmap

This commit is contained in:
2025-10-12 15:32:49 +08:00
parent 32977d9580
commit 1ded811b36
3 changed files with 69 additions and 2 deletions

View File

@@ -37,6 +37,14 @@ public class PublisherController(
return Ok(publisher);
}
[HttpGet("{name}/heatmap")]
public async Task<ActionResult<ActivityHeatmap>> GetPublisherHeatmap(string name)
{
var heatmap = await ps.GetPublisherHeatmap(name);
if (heatmap is null) return NotFound();
return Ok(heatmap);
}
[HttpGet("{name}/stats")]
public async Task<ActionResult<PublisherService.PublisherStats>> GetPublisherStats(string name)
@@ -693,4 +701,4 @@ public class PublisherController(
return NoContent();
}
}
}