Crated basic file upload method; also included appsettings and feauture-management

This commit is contained in:
schnulller
2022-06-02 03:19:04 +02:00
parent 34a4fccc91
commit d81eb942e7
21 changed files with 790 additions and 158 deletions

View File

@@ -0,0 +1,26 @@
namespace HaWeb.Controllers;
using Microsoft.AspNetCore.Mvc;
using HaDocument.Interfaces;
using HaXMLReader.Interfaces;
using Microsoft.FeatureManagement.Mvc;
public class AdminController : Controller
{
// DI
private ILibrary _lib;
private IReaderService _readerService;
public AdminController(ILibrary lib, IReaderService readerService)
{
_lib = lib;
_readerService = readerService;
}
[Route("Admin")]
[FeatureGate(Features.AdminService)]
public IActionResult Index()
{
return Redirect("/Admin/Upload");
}
}