Compare commits

..

No commits in common. "9d882f7a5591066a7753331517384ac04226a71f" and "25dd659291a27ba7990f78a5a0a97e10a561bbfe" have entirely different histories.

View File

@ -13,7 +13,6 @@ using AcaMate.V1.Controllers;
var builder = WebApplication.CreateBuilder(args); var builder = WebApplication.CreateBuilder(args);
// DB 설정부 시작 // DB 설정부 시작
builder.Configuration.AddJsonFile("private/dbSetting.json", optional: true, reloadOnChange: true); builder.Configuration.AddJsonFile("private/dbSetting.json", optional: true, reloadOnChange: true);
// var connectionString = builder.Configuration.GetConnectionString("MariaDbConnection"); // var connectionString = builder.Configuration.GetConnectionString("MariaDbConnection");
@ -80,7 +79,6 @@ builder.Services.AddCors(option =>
option.AddPolicy("CorsPolicy", builder => option.AddPolicy("CorsPolicy", builder =>
{ {
builder builder
.AllowAnyOrigin()
.AllowAnyMethod() .AllowAnyMethod()
.AllowAnyHeader() .AllowAnyHeader()
.AllowCredentials() .AllowCredentials()
@ -107,7 +105,7 @@ else
} }
// app.UseHttpsRedirection(); app.UseHttpsRedirection();
app.UseAuthorization(); app.UseAuthorization();
app.MapControllers(); app.MapControllers();
@ -118,8 +116,7 @@ app.UseRouting();
app.UseWebSockets(); app.UseWebSockets();
app.UseEndpoints(end => app.UseEndpoints(end =>
{ {
end.MapControllers(); app.MapHub<ChatHub>("/chatHub");
end.MapHub<ChatHub>("/chatHub");
}); });