mirror of
				https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
				synced 2025-10-30 17:55:32 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			620 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			620 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/XMLState");
 | |
|     }
 | |
| } | 
