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

@@ -18,6 +18,9 @@ public class RootPartialViewTreeController : PartialViewTreeControllerBase
[HttpGet("root")]
[MapToApiVersion("1.0")]
[ProducesResponseType(typeof(PagedViewModel<FileSystemTreeItemPresentationModel>), StatusCodes.Status200OK)]
public async Task<ActionResult<PagedViewModel<FileSystemTreeItemPresentationModel>>> Root(int skip = 0, int take = 100)
public async Task<ActionResult<PagedViewModel<FileSystemTreeItemPresentationModel>>> Root(
CancellationToken cancellationToken,
int skip = 0,
int take = 100)
=> await GetRoot(skip, take);
}