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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user