Files
mixtape/zero.Web/Controllers/ApplicationsController.cs
T
2020-04-06 00:26:31 +02:00

26 lines
543 B
C#

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());
}
}
}