mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-30 01:35:32 +00:00
Möglichkeit zur Angabe eines zeitraumes für die angezeigten Briefe
This commit is contained in:
@@ -343,8 +343,18 @@ public class APIController : Controller {
|
||||
if (!ModelState.IsValid) return BadRequest(ModelState);
|
||||
|
||||
_xmlProvider.SetInProduction(newFile.First());
|
||||
_xmlService.UnUseProduction();
|
||||
|
||||
return Created("/", newFile.First());
|
||||
}
|
||||
|
||||
|
||||
[HttpPost]
|
||||
[Route("API/SetStartEndYear")]
|
||||
[ValidateAntiForgeryToken]
|
||||
[FeatureGate(Features.UploadService, Features.AdminService)]
|
||||
public async Task<IActionResult>? SetStartEndYear(StartEndYear startendyear) {
|
||||
if (startendyear.StartYear > startendyear.EndYear) return BadRequest();
|
||||
_lib.SetStartEndYear(startendyear.StartYear, startendyear.EndYear);
|
||||
return Created("/", "");;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user