2024-11-14 08:01:32 +00:00
|
|
|
|
using data.RemoteData.RemoteDataBase;
|
|
|
|
|
|
2024-11-11 10:42:08 +00:00
|
|
|
|
var builder = WebApplication.CreateBuilder(args);
|
|
|
|
|
|
2024-11-18 12:42:33 +00:00
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2024-11-14 08:01:32 +00:00
|
|
|
|
builder.Services.AddControllers();
|
|
|
|
|
builder.Services.AddDbContext<RemoteDatabaseContext>();
|
2024-11-18 12:42:33 +00:00
|
|
|
|
|
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2024-11-20 09:15:21 +00:00
|
|
|
|
builder.Services.ConfigurateAdminPanel();
|
2024-11-15 09:22:30 +00:00
|
|
|
|
builder.Services.ConfigurateRepositories();
|
2024-11-11 10:42:08 +00:00
|
|
|
|
|
2024-11-18 12:42:33 +00:00
|
|
|
|
// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2024-11-14 08:01:32 +00:00
|
|
|
|
builder.Services.ConfigurateGroup();
|
2024-11-18 12:42:33 +00:00
|
|
|
|
builder.Services.ConfigurateUser(); // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
builder.Services.ConfiguratePresence(); // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2024-11-14 08:01:32 +00:00
|
|
|
|
|
2024-11-18 12:42:33 +00:00
|
|
|
|
builder.Services.AddEndpointsApiExplorer();
|
|
|
|
|
builder.Services.AddSwaggerGen();
|
2024-11-11 10:42:08 +00:00
|
|
|
|
|
2024-11-18 12:42:33 +00:00
|
|
|
|
var app = builder.Build();
|
2024-11-11 10:42:08 +00:00
|
|
|
|
|
|
|
|
|
if (app.Environment.IsDevelopment())
|
|
|
|
|
{
|
|
|
|
|
app.UseSwagger();
|
|
|
|
|
app.UseSwaggerUI();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
app.UseHttpsRedirection();
|
2024-11-14 08:01:32 +00:00
|
|
|
|
app.MapControllers();
|
2024-11-11 10:42:08 +00:00
|
|
|
|
|
|
|
|
|
app.Run();
|