diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-10-11 08:53:16 -0500 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2022-10-11 08:53:16 -0500 |
| commit | b56a6650e95b3964d22d0af8c4c44b74d2800c29 (patch) | |
| tree | b325530d3897131c1592183c2ba9b325d1b19925 /src/slskd/Core/API/Controllers/ServerController.cs | |
| parent | 3c3cfe6f2c3c49c05aa4de1e86a81fcb2c8af590 (diff) | |
| parent | 409f66e9a851625346fb1309f6cd41e6a9770e9c (diff) | |
| download | slskd-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.cs | 6 |
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() |
