34 lines
1006 B
C#
34 lines
1006 B
C#
using VeterinaryClinicBusinessLogics.BusinessLogics;
|
|
using VeterinaryClinicContracts.BusinessLogicsContracts;
|
|
using VeterinaryClinicContracts.StoragesContracts;
|
|
using VeterinaryClinicDatabaseImplement.Implements;
|
|
using Microsoft.OpenApi.Models;
|
|
using VeterinaryClinicBusinessLogics.OfficePackage.Implements;
|
|
using VeterinaryClinicBusinessLogics.OfficePackage;
|
|
using VeterinaryClinicBusinessLogics.MailWorker;
|
|
using System.Text;
|
|
|
|
var builder = WebApplication.CreateBuilder(args);
|
|
|
|
builder.Services.AddControllers();
|
|
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
|
|
builder.Services.AddEndpointsApiExplorer();
|
|
builder.Services.AddSwaggerGen();
|
|
|
|
var app = builder.Build();
|
|
|
|
// Configure the HTTP request pipeline.
|
|
if (app.Environment.IsDevelopment())
|
|
{
|
|
app.UseSwagger();
|
|
app.UseSwaggerUI(c => c.SwaggerEndpoint("/swagger/v1/swagger.json", "VeterinaryClinicRestApi v1"));
|
|
}
|
|
|
|
app.UseHttpsRedirection();
|
|
|
|
app.UseAuthorization();
|
|
|
|
app.MapControllers();
|
|
|
|
app.Run();
|