diff options
| author | JP Dillingham <jp@dillingham.me> | 2023-01-20 16:17:18 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2023-01-20 16:17:18 -0600 |
| commit | 2f1d36d46836f90bac27bb8dd957a15ba7b6429b (patch) | |
| tree | e2b575efeecca75616d8a1f5bdbdee143c16ece9 /src/slskd/Relay/API/Controllers/RelayController.cs | |
| parent | a5ca9a6c0397370ac2ea6b79be1641b9e64a4336 (diff) | |
| download | slskd-2f1d36d46836f90bac27bb8dd957a15ba7b6429b.tar.gz | |
separate agent and controller actions by route
Diffstat (limited to 'src/slskd/Relay/API/Controllers/RelayController.cs')
| -rw-r--r-- | src/slskd/Relay/API/Controllers/RelayController.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/slskd/Relay/API/Controllers/RelayController.cs b/src/slskd/Relay/API/Controllers/RelayController.cs index e3c3d28b..f76e8288 100644 --- a/src/slskd/Relay/API/Controllers/RelayController.cs +++ b/src/slskd/Relay/API/Controllers/RelayController.cs @@ -67,7 +67,7 @@ namespace slskd.Relay /// Connects to the configured controller. /// </summary> /// <returns></returns> - [HttpPut("controller")] + [HttpPut("agent")] [Authorize(Policy = AuthPolicy.JwtOnly)] public async Task<IActionResult> Connect() { @@ -84,7 +84,7 @@ namespace slskd.Relay /// Disconnects from the connected controller. /// </summary> /// <returns></returns> - [HttpDelete("controller")] + [HttpDelete("agent")] [Authorize(Policy = AuthPolicy.JwtOnly)] public async Task<IActionResult> Disconnect() { @@ -102,7 +102,7 @@ namespace slskd.Relay /// </summary> /// <param name="token">The unique identifier for the request.</param> /// <returns></returns> - [HttpGet("downloads/{token}")] + [HttpGet("controller/downloads/{token}")] [Authorize(Policy = AuthPolicy.ApiKeyOnly)] public IActionResult DownloadFile([FromRoute]string token) { @@ -153,7 +153,7 @@ namespace slskd.Relay /// </summary> /// <param name="token">The unique identifier for the request.</param> /// <returns></returns> - [HttpPost("files/{token}")] + [HttpPost("controller/files/{token}")] [RequestSizeLimit(10L * 1024L * 1024L * 1024L)] [RequestFormLimits(MultipartBodyLengthLimit = 10L * 1024L * 1024L * 1024L)] [DisableFormValueModelBinding] @@ -251,7 +251,7 @@ namespace slskd.Relay /// </summary> /// <param name="token">The unique identifier for the request.</param> /// <returns></returns> - [HttpPost("shares/{token}")] + [HttpPost("controller/shares/{token}")] [Authorize(Policy = AuthPolicy.ApiKeyOnly)] public async Task<IActionResult> UploadShares(string token) { |
