edit, move + delete works for media files + folders now

This commit is contained in:
2020-09-03 14:50:41 +02:00
parent a131010dcb
commit a79b33ae8b
18 changed files with 489 additions and 57 deletions
@@ -3,6 +3,7 @@ using System.Threading.Tasks;
using zero.Core.Api;
using zero.Core.Entities;
using zero.Core.Identity;
using zero.Web.Models;
namespace zero.Web.Controllers
{
@@ -29,6 +30,10 @@ namespace zero.Web.Controllers
public async Task<IActionResult> GetAllAsTree([FromQuery] string parent = null, [FromQuery] string active = null) => Json(await Api.GetAllAsTree(parent, active));
[HttpPost]
public async Task<IActionResult> Move([FromBody] ActionCopyModel model) => Json(await Api.Move(model.Id, model.DestinationId));
public async Task<IActionResult> Save([FromBody] IMediaFolder model) => Json(await Api.Save(model));