From 31baa6d5e382fadecd5084aed4da8d129e578eea Mon Sep 17 00:00:00 2001 From: Stefan Kert Date: Wed, 6 Sep 2023 15:50:33 +0200 Subject: [PATCH] Extended launcher to enable hosting new IITSSCD versions --- .../Extensions/WebApplicationExtensions.cs | 3 ++- src/fiskaltrust.Launcher/fiskaltrust.Launcher.csproj | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/fiskaltrust.Launcher/Extensions/WebApplicationExtensions.cs b/src/fiskaltrust.Launcher/Extensions/WebApplicationExtensions.cs index a343ffed..bc3fc98a 100644 --- a/src/fiskaltrust.Launcher/Extensions/WebApplicationExtensions.cs +++ b/src/fiskaltrust.Launcher/Extensions/WebApplicationExtensions.cs @@ -65,7 +65,8 @@ public static WebApplication AddScuItEndpoints(this WebApplication app, IITSSCD app.MapMultiplePrefixed(_prefixesV1, "FiscalReceiptInvoice", EndpointRouteBuilderExtensions.MapPost, async (FiscalReceiptInvoice req) => await sscd.FiscalReceiptInvoiceAsync(req)); app.MapMultiplePrefixed(_prefixesV1, "FiscalReceiptRefund", EndpointRouteBuilderExtensions.MapPost, async (FiscalReceiptRefund req) => await sscd.FiscalReceiptRefundAsync(req)); app.MapMultiplePrefixed(_prefixesV1, "ExecuteDailyClosing", EndpointRouteBuilderExtensions.MapPost, async (DailyClosingRequest req) => await sscd.ExecuteDailyClosingAsync(req)); - + app.MapMultiplePrefixed(_prefixesV1, "ProcessReceipt", EndpointRouteBuilderExtensions.MapPost, async (ProcessRequest req) => await sscd.ProcessReceiptAsync(req)); + app.MapMultiplePrefixed(_prefixesV1, "GetRTInfo", EndpointRouteBuilderExtensions.MapGet, async () => await sscd.GetRTInfoAsync()); return app; } } diff --git a/src/fiskaltrust.Launcher/fiskaltrust.Launcher.csproj b/src/fiskaltrust.Launcher/fiskaltrust.Launcher.csproj index ccbe4516..f0c8e7cc 100644 --- a/src/fiskaltrust.Launcher/fiskaltrust.Launcher.csproj +++ b/src/fiskaltrust.Launcher/fiskaltrust.Launcher.csproj @@ -17,12 +17,12 @@ - + - + - - + +