mirror of
https://github.com/Cleanuparr/Cleanuparr.git
synced 2026-03-04 14:27:52 -05:00
fix #9
This commit is contained in:
@@ -57,8 +57,8 @@ public class DownloadClientsController : ControllerBase
|
||||
/// <summary>
|
||||
/// Gets a specific download client by ID
|
||||
/// </summary>
|
||||
[HttpGet("{id}")]
|
||||
public async Task<IActionResult> GetClient(string id)
|
||||
[HttpGet("{id:guid}")]
|
||||
public async Task<IActionResult> GetClient(Guid id)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -133,8 +133,8 @@ public class DownloadClientsController : ControllerBase
|
||||
/// <summary>
|
||||
/// Updates an existing download client
|
||||
/// </summary>
|
||||
[HttpPut("{id}")]
|
||||
public async Task<IActionResult> UpdateClient(string id, [FromBody] ClientConfig clientConfig)
|
||||
[HttpPut("{id:guid}")]
|
||||
public async Task<IActionResult> UpdateClient(Guid id, [FromBody] ClientConfig clientConfig)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -184,8 +184,8 @@ public class DownloadClientsController : ControllerBase
|
||||
/// <summary>
|
||||
/// Deletes a download client
|
||||
/// </summary>
|
||||
[HttpDelete("{id}")]
|
||||
public async Task<IActionResult> DeleteClient(string id)
|
||||
[HttpDelete("{id:guid}")]
|
||||
public async Task<IActionResult> DeleteClient(Guid id)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -226,8 +226,8 @@ public class DownloadClientsController : ControllerBase
|
||||
/// <summary>
|
||||
/// Tests connection to a download client
|
||||
/// </summary>
|
||||
[HttpPost("{id}/test")]
|
||||
public async Task<IActionResult> TestConnection(string id)
|
||||
[HttpPost("{id:guid}/test")]
|
||||
public async Task<IActionResult> TestConnection(Guid id)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@@ -45,8 +45,8 @@ public class HealthCheckController : ControllerBase
|
||||
/// <summary>
|
||||
/// Gets the health status of a specific download client
|
||||
/// </summary>
|
||||
[HttpGet("{id}")]
|
||||
public IActionResult GetClientHealth(string id)
|
||||
[HttpGet("{id:guid}")]
|
||||
public IActionResult GetClientHealth(Guid id)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -86,8 +86,8 @@ public class HealthCheckController : ControllerBase
|
||||
/// <summary>
|
||||
/// Triggers a health check for a specific download client
|
||||
/// </summary>
|
||||
[HttpPost("check/{id}")]
|
||||
public async Task<IActionResult> CheckClientHealth(string id)
|
||||
[HttpPost("check/{id:guid}")]
|
||||
public async Task<IActionResult> CheckClientHealth(Guid id)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user