aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Telemetry/API/TelemetryController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Telemetry/API/TelemetryController.cs')
-rw-r--r--src/slskd/Telemetry/API/TelemetryController.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/slskd/Telemetry/API/TelemetryController.cs b/src/slskd/Telemetry/API/TelemetryController.cs
index 5e6469f8..910e3654 100644
--- a/src/slskd/Telemetry/API/TelemetryController.cs
+++ b/src/slskd/Telemetry/API/TelemetryController.cs
@@ -199,6 +199,17 @@ public class TelemetryController : ControllerBase
return Ok(dict);
}
+ [HttpGet("statistics/transfers/directories")]
+ [Authorize(Policy = AuthPolicy.Any)]
+ [ProducesResponseType(typeof(Dictionary<string, int>), 200)]
+ public IActionResult GetTransferSummaryByDirectory(
+ [FromQuery] int? limit = null,
+ [FromQuery] int? offset = null)
+ {
+ // todo: get a list of all directories downloaded at least once, along with the number of times downloaded (doesn't matter what status)
+ return null;
+ }
+
/// <summary>
/// Returns the top N errors by total count and direction.
/// </summary>