Changes
Build and Push Docker Images / build (push) Successful in 36s

This commit is contained in:
2026-05-06 13:59:59 +03:00
parent 91cdb536b1
commit cd0e32513f
8 changed files with 99 additions and 39 deletions
+9 -1
View File
@@ -7,6 +7,8 @@ using Serilog;
using System.Reflection;
using Microsoft.EntityFrameworkCore;
using Refit;
using System.IO;
using Swashbuckle.AspNetCore.Annotations;
using Api.Data.Repositories;
using Api.Data.Repositories.Contracts;
using Api.Clients.Api;
@@ -99,7 +101,13 @@ try
builder.Services.AddControllers();
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
builder.Services.AddSwaggerGen(options =>
{
var xmlFile = (Assembly.GetExecutingAssembly().GetName().Name ?? "cv-matcher-api") + ".xml";
var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile);
if (File.Exists(xmlPath)) options.IncludeXmlComments(xmlPath);
options.EnableAnnotations();
});
var app = builder.Build();