draft: refactor project so it sits on top of a standalone app

This commit is contained in:
2020-05-11 15:34:47 +02:00
parent a9ee5acc1c
commit f97e8455fc
13068 changed files with 1735502 additions and 866 deletions
+3 -8
View File
@@ -1,7 +1,4 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
using zero.Core;
using Microsoft.AspNetCore.Mvc;
using zero.Core.Extensions;
using zero.Core.Identity;
using zero.Web.Models;
@@ -11,11 +8,9 @@ namespace zero.Web.Controllers
[ZeroAuthorize(false)]
public class IndexController : BackofficeController
{
private ZeroOptions Options { get; set; }
private IZeroVue ZeroVue { get; set; }
public IndexController(IZeroConfiguration config, IZeroVue zeroVue) : base(config)
public IndexController(IZeroVue zeroVue)
{
ZeroVue = zeroVue;
}
@@ -23,7 +18,7 @@ namespace zero.Web.Controllers
public IActionResult Index()
{
if (Configuration.ZeroVersion.IsNullOrEmpty())
if (Options.ZeroVersion.IsNullOrEmpty())
{
return RedirectToAction("Index", "Setup");
}