Dixed Bug in the API Controller

This commit is contained in:
schnulller
2022-06-05 00:22:03 +02:00
parent 9712574e13
commit abc27c6d04
3 changed files with 12 additions and 7 deletions

View File

@@ -20,7 +20,7 @@ using Microsoft.AspNetCore.Http.Features;
public class APIController : Controller {
// DI
private ILibrary _lib;
private IHaDocumentWrappper _lib;
private IReaderService _readerService;
private readonly long _fileSizeLimit;
private readonly string _targetFilePath;
@@ -31,7 +31,7 @@ public class APIController : Controller {
private static readonly FormOptions _defaultFormOptions = new FormOptions();
public APIController(ILibrary lib, IReaderService readerService, IXMLService xmlService, IConfiguration config) {
public APIController(IHaDocumentWrappper lib, IReaderService readerService, IXMLService xmlService, IConfiguration config) {
_lib = lib;
_readerService = readerService;
_xmlService = xmlService;

View File

@@ -10,9 +10,13 @@
</div>
</div>
</div>
<div class="grow-0 shrink-0">
© 2022 Theodor Springmann Stiftung | Stand vom 27.5.2022 | <a href="/Edition/Kontakt">Kontakt</a> ·
<a href="/Edition/Datenschutzerklaerung">Datenschutzerklärung</a>
</div>
<div class="grow-0 shrink-0">
© 2022 Theodor Springmann Stiftung | Stand vom 27.5.2022 | <a href="/Edition/Kontakt">Kontakt</a> ·
<a href="/Edition/Datenschutzerklaerung">Datenschutzerklärung</a>
<feature name="AdminService">
<span> · <a asp-controller="Admin" asp-action="Index">Admin-Bereich</a></span>
</feature>
</div>
</div>
</div>

View File

@@ -4,3 +4,4 @@
@using HaDocument.Models
@using System.Text
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, Microsoft.FeatureManagement.AspNetCore