Merge pull request '[👷] 채팅(Base) 수정 1차' (#21) from seonkyu.kim/AcaMate_API:main into debug
All checks were successful
Back/pipeline/head This commit looks good

Reviewed-on: https://git.ipstein.myds.me/AcaMate/AcaMate_API/pulls/21
This commit is contained in:
김선규 2025-02-17 08:41:57 +00:00
commit 9d882f7a55

View File

@ -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>("/chatHub");
end.MapControllers();
end.MapHub<ChatHub>("/chatHub");
});