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