From 6f06f3b39cf0bf6613eb5f13377c0239226ab137 Mon Sep 17 00:00:00 2001 From: Seonkyu_Kim Date: Mon, 17 Feb 2025 17:39:42 +0900 Subject: [PATCH] =?UTF-8?q?[=F0=9F=91=B7]=20=EC=B1=84=ED=8C=85(Base)=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=201=EC=B0=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Program.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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"); }); -- 2.45.1