mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-30 01:35:32 +00:00
Crated basic file upload method; also included appsettings and feauture-management
This commit is contained in:
26
HaWeb/Controllers/AdminController.cs
Normal file
26
HaWeb/Controllers/AdminController.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user