aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/API/Controllers/ApplicationController.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-06-02 08:38:47 -0500
committerGitHub <noreply@github.com>2022-06-02 08:38:47 -0500
commit2bd24b38f046d9e7b37825db6af2756e43ba0dfc (patch)
treefd1f5b246cdc8597e4bc9176fd70bb6067bebfe9 /src/slskd/Core/API/Controllers/ApplicationController.cs
parent1a6075b612dd5067eb4e8376ac9034050ad74477 (diff)
parent9e0013c0317adbaa007fce8dbea06928b1d159ef (diff)
downloadslskd-2bd24b38f046d9e7b37825db6af2756e43ba0dfc.tar.gz
Merge pull request #493 from slskd/shares
Add a 'Shares' tab to the 'System' page, along with a button to rescan shares
Diffstat (limited to 'src/slskd/Core/API/Controllers/ApplicationController.cs')
-rw-r--r--src/slskd/Core/API/Controllers/ApplicationController.cs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/slskd/Core/API/Controllers/ApplicationController.cs b/src/slskd/Core/API/Controllers/ApplicationController.cs
index cd03d96f..3cf3c0a3 100644
--- a/src/slskd/Core/API/Controllers/ApplicationController.cs
+++ b/src/slskd/Core/API/Controllers/ApplicationController.cs
@@ -136,20 +136,5 @@ namespace slskd.Core.API
return Ok();
}
-
- [HttpPut]
- [Route("shares")]
- [Authorize]
- public IActionResult RescanSharesAsync()
- {
- if (ApplicationStateMonitor.CurrentValue.SharedFileCache.Filling)
- {
- return Conflict("A share scan is already in progress.");
- }
-
- _ = Application.RescanSharesAsync();
-
- return Ok();
- }
}
}