aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Core/API/Controllers/ServerController.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-10-11 08:53:16 -0500
committerJP Dillingham <jp@dillingham.me>2022-10-11 08:53:16 -0500
commitb56a6650e95b3964d22d0af8c4c44b74d2800c29 (patch)
treeb325530d3897131c1592183c2ba9b325d1b19925 /src/slskd/Core/API/Controllers/ServerController.cs
parent3c3cfe6f2c3c49c05aa4de1e86a81fcb2c8af590 (diff)
parent409f66e9a851625346fb1309f6cd41e6a9770e9c (diff)
downloadslskd-b56a6650e95b3964d22d0af8c4c44b74d2800c29.tar.gz
Merge remote-tracking branch 'origin/master' into agent
Diffstat (limited to 'src/slskd/Core/API/Controllers/ServerController.cs')
-rw-r--r--src/slskd/Core/API/Controllers/ServerController.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/slskd/Core/API/Controllers/ServerController.cs b/src/slskd/Core/API/Controllers/ServerController.cs
index 172333ec..a725c978 100644
--- a/src/slskd/Core/API/Controllers/ServerController.cs
+++ b/src/slskd/Core/API/Controllers/ServerController.cs
@@ -54,7 +54,7 @@ namespace slskd.Core.API
/// <returns></returns>
[HttpPut]
[Route("")]
- [Authorize]
+ [Authorize(Policy = AuthPolicy.Any)]
[ProducesResponseType(200)]
[ProducesResponseType(403)]
public async Task<IActionResult> Connect()
@@ -74,7 +74,7 @@ namespace slskd.Core.API
/// <returns></returns>
[HttpDelete]
[Route("")]
- [Authorize]
+ [Authorize(Policy = AuthPolicy.Any)]
[ProducesResponseType(204)]
[ProducesResponseType(403)]
public IActionResult Disconnect([FromBody] string message)
@@ -94,7 +94,7 @@ namespace slskd.Core.API
/// <response code="200"></response>
[HttpGet]
[Route("")]
- [Authorize]
+ [Authorize(Policy = AuthPolicy.Any)]
[ProducesResponseType(typeof(ServerState), 200)]
[ProducesResponseType(403)]
public IActionResult Get()