V14: Add cancellation tokens to all endpoints (#15984)

* Add CancellationToken to controllers

* Fix GetManagementApiUrl

* Forgotten Item and Tree controllers

* Document Blueprint and Version endpoints

* Fix merge conflict

* Cleanup

---------

Co-authored-by: Elitsa <elm@umbraco.dk>
This commit is contained in:
Mole
2024-04-09 08:18:45 +02:00
committed by GitHub
parent ddf663d30b
commit 187d45860a
369 changed files with 830 additions and 369 deletions

View File

@@ -17,6 +17,8 @@ public class AncestorsScriptTreeController : ScriptTreeControllerBase
[HttpGet("ancestors")]
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(IEnumerable<FileSystemTreeItemPresentationModel>), StatusCodes.Status200OK)]
public async Task<ActionResult<IEnumerable<FileSystemTreeItemPresentationModel>>> Ancestors(string descendantPath)
public async Task<ActionResult<IEnumerable<FileSystemTreeItemPresentationModel>>> Ancestors(
CancellationToken cancellationToken,
string descendantPath)
=> await GetAncestors(descendantPath);
}