diff --git a/Program.cs b/Program.cs index 968c055..b6c89ea 100644 --- a/Program.cs +++ b/Program.cs @@ -74,6 +74,7 @@ builder.Services.AddEndpointsApiExplorer(); builder.Services.AddCustomSwagger(); // SignalR 설정 추가 부분 +/* builder.Services.AddSignalR(); builder.Services.AddCors(option => { @@ -87,6 +88,7 @@ builder.Services.AddCors(option => }); }); +*/ ///// ===== builder 설정 부 ===== ///// @@ -109,8 +111,9 @@ else app.UseHttpsRedirection(); app.UseRouting(); +app.MapControllers(); - +/* app.UseCors("CorsPolicy"); app.UseAuthorization(); @@ -120,6 +123,7 @@ app.UseEndpoints(end => end.MapControllers(); end.MapHub("/chatHub"); }); +*/ app.Run(); \ No newline at end of file