get real applications

This commit is contained in:
2020-04-06 00:26:31 +02:00
parent ad312b387b
commit ce1a55e946
13 changed files with 209 additions and 22 deletions
@@ -0,0 +1,25 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using zero.Core;
using zero.Core.Api;
namespace zero.Web.Controllers
{
[AllowAnonymous]
public class ApplicationsController : BackofficeController
{
private IApplicationsApi Api { get; set; }
public ApplicationsController(IZeroConfiguration config, IApplicationsApi api) : base(config)
{
Api = api;
}
public async Task<IActionResult> GetAll()
{
return Json(await Api.GetAll());
}
}
}