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/OptionsController.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/OptionsController.cs')
| -rw-r--r-- | src/slskd/Core/API/Controllers/OptionsController.cs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/slskd/Core/API/Controllers/OptionsController.cs b/src/slskd/Core/API/Controllers/OptionsController.cs index b0856ed3..f621b37a 100644 --- a/src/slskd/Core/API/Controllers/OptionsController.cs +++ b/src/slskd/Core/API/Controllers/OptionsController.cs @@ -56,7 +56,7 @@ namespace slskd.Core.API /// </summary> /// <returns></returns> [HttpGet] - [Authorize] + [Authorize(Policy = AuthPolicy.Any)] [ProducesResponseType(typeof(Options), 200)] public IActionResult Current() { @@ -69,7 +69,7 @@ namespace slskd.Core.API /// <returns></returns> [HttpGet] [Route("startup")] - [Authorize] + [Authorize(Policy = AuthPolicy.Any)] [ProducesResponseType(typeof(Options), 200)] public IActionResult Startup() { @@ -82,7 +82,7 @@ namespace slskd.Core.API /// <returns></returns> [HttpGet] [Route("debug")] - [Authorize] + [Authorize(Policy = AuthPolicy.JwtOnly)] [ProducesResponseType(typeof(string), 200)] public IActionResult Debug() { @@ -95,7 +95,7 @@ namespace slskd.Core.API } [HttpGet] - [Authorize] + [Authorize(Policy = AuthPolicy.JwtOnly)] [Route("yaml/location")] public IActionResult GetYamlFileLocation() { @@ -103,7 +103,7 @@ namespace slskd.Core.API } [HttpGet] - [Authorize] + [Authorize(Policy = AuthPolicy.JwtOnly)] [Route("yaml")] public IActionResult GetYamlFile() { @@ -117,7 +117,7 @@ namespace slskd.Core.API } [HttpPost] - [Authorize] + [Authorize(Policy = AuthPolicy.JwtOnly)] [Route("yaml")] public IActionResult UpdateYamlFile([FromBody] string yaml) { @@ -144,7 +144,7 @@ namespace slskd.Core.API } [HttpPost] - [Authorize] + [Authorize(Policy = AuthPolicy.Any)] [Route("yaml/validate")] public IActionResult ValidateYamlFile([FromBody] string yaml) { |
