mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-29 09:15:33 +00:00
23 lines
618 B
C#
23 lines
618 B
C#
namespace HaWeb.Controllers;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using HaDocument.Interfaces;
|
|
using HaXMLReader.Interfaces;
|
|
using Microsoft.FeatureManagement.Mvc;
|
|
using HaWeb.FileHelpers;
|
|
public class AdminController : Controller {
|
|
// DI
|
|
private IHaDocumentWrappper _lib;
|
|
private IReaderService _readerService;
|
|
|
|
public AdminController(IHaDocumentWrappper lib, IReaderService readerService) {
|
|
_lib = lib;
|
|
_readerService = readerService;
|
|
}
|
|
|
|
|
|
[Route("Admin")]
|
|
[FeatureGate(Features.AdminService)]
|
|
public IActionResult Index() {
|
|
return Redirect("/Admin/Upload");
|
|
}
|
|
} |