forked from AcaMate/AcaMate_API
[👷] 채팅(Base) 수정 1차
This commit is contained in:
parent
e48eb6f76b
commit
6f06f3b39c
|
@ -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");
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user