Files
mixtape/zero.Web/Controllers/IndexController.cs
T

28 lines
531 B
C#
Raw Normal View History

2020-03-22 14:47:59 +01:00
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using zero.Core;
using zero.Core.Extensions;
2020-03-22 14:47:59 +01:00
2020-03-24 23:09:29 +01:00
namespace zero.Web.Controllers
2020-03-22 14:47:59 +01:00
{
[AllowAnonymous]
public class IndexController : BackofficeController
{
public IndexController(IZeroConfiguration config) : base(config)
{
}
2020-03-22 14:47:59 +01:00
public IActionResult Index()
{
if (Configuration.ZeroVersion.IsNullOrEmpty())
{
return RedirectToAction("Index", "Setup");
}
return View("/Views/Index.cshtml");
2020-03-22 14:47:59 +01:00
}
}
}