try rewirte of all backoffice controllers to ApiControllers

This commit is contained in:
2020-10-27 15:47:23 +01:00
parent edfb6ec2e5
commit 6eb81a5eeb
37 changed files with 315 additions and 354 deletions
+4 -5
View File
@@ -1,5 +1,4 @@
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Threading.Tasks;
using zero.Core;
using zero.Core.Api;
@@ -28,7 +27,7 @@ namespace zero.Web.Controllers
/// <summary>
/// Get all settings areas
/// </summary>
public async Task<IActionResult> GetAreas()
public async Task<dynamic> GetAreas()
{
bool isSuperUser = AuthApi.IsSuper();
IList<Permission> permissions = AuthApi.GetPermissions(Permissions.Settings.PREFIX);
@@ -75,11 +74,11 @@ namespace zero.Web.Controllers
applications = await ApplicationsApi.GetAll();
}
return Json(new
return new
{
groups,
applications
});
};
}
}
}