feat(api): add PdfSignatureController and wire signing DI

This commit is contained in:
2026-10-22 02:26:21 +02:00
parent f452821f22
commit 3b21dbc8f7
3 changed files with 78 additions and 0 deletions

View File

@@ -7,8 +7,10 @@ using DocumentService.Infrastructure.Configuration;
using DocumentService.Application;
using DocumentService.Application.Common.Configuration;
using DocumentService.Infrastructure;
using DocumentService.Infrastructure.Crypt.DependencyInjection;
using DocumentService.API.Middleware;
using DocumentService.API.Configuration;
using DocumentOperator.Application;
var builder = WebApplication.CreateBuilder(args);
@@ -50,6 +52,8 @@ try
// ========================================
builder.Services.AddApplication(builder.Configuration); // Application Layer (MediatR, FluentValidation, Behaviors)
builder.Services.AddInfrastructure(); // Infrastructure Layer (DevExpress, Services)
builder.Services.AddDocumentOperatorApplication(builder.Configuration); // PDF signing Application (MediatR)
builder.Services.AddCryptInfrastructure(builder.Configuration); // PKCS#11 PDF signing (DevExpress)
builder.Services.AddControllers(); // Controllers (Controller-based API)
builder.Services.AddEndpointsApiExplorer();