create and load nested media

This commit is contained in:
2020-05-29 15:46:03 +02:00
parent 91234102fb
commit ca6d2957ea
6 changed files with 113 additions and 20 deletions
@@ -41,9 +41,9 @@ namespace zero.Web.Controllers
/// <summary>
/// Get all folders with a specific parent as tree
/// </summary>
public async Task<IActionResult> GetAllAsTree([FromQuery] string parent = null)
public async Task<IActionResult> GetAllAsTree([FromQuery] string parent = null, [FromQuery] string active = null)
{
return Json(await Api.GetAllAsTree(parent));
return Json(await Api.GetAllAsTree(parent, active));
}