nested tree with async loading

This commit is contained in:
2020-04-06 18:45:23 +02:00
parent 3b0eca2339
commit 9e02bee33e
9 changed files with 242 additions and 17 deletions
+3 -2
View File
@@ -1,6 +1,7 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using zero.Core;
using zero.Core.Api;
@@ -20,9 +21,9 @@ namespace zero.Web.Controllers
}
public IActionResult GetChildren(string parent = null)
public async Task<IActionResult> GetChildren(string parent = null)
{
return Json(Api.GetChildren(Env.ContentRootPath, parent));
return Json(await Api.GetChildren(Env.ContentRootPath, parent));
}
}
}