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
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:
commit
9d882f7a55
|
@ -13,6 +13,7 @@ using AcaMate.V1.Controllers;
|
||||||
|
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
|
|
||||||
|
|
||||||
// DB 설정부 시작
|
// DB 설정부 시작
|
||||||
builder.Configuration.AddJsonFile("private/dbSetting.json", optional: true, reloadOnChange: true);
|
builder.Configuration.AddJsonFile("private/dbSetting.json", optional: true, reloadOnChange: true);
|
||||||
// var connectionString = builder.Configuration.GetConnectionString("MariaDbConnection");
|
// var connectionString = builder.Configuration.GetConnectionString("MariaDbConnection");
|
||||||
|
@ -79,6 +80,7 @@ builder.Services.AddCors(option =>
|
||||||
option.AddPolicy("CorsPolicy", builder =>
|
option.AddPolicy("CorsPolicy", builder =>
|
||||||
{
|
{
|
||||||
builder
|
builder
|
||||||
|
.AllowAnyOrigin()
|
||||||
.AllowAnyMethod()
|
.AllowAnyMethod()
|
||||||
.AllowAnyHeader()
|
.AllowAnyHeader()
|
||||||
.AllowCredentials()
|
.AllowCredentials()
|
||||||
|
@ -105,7 +107,7 @@ else
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
app.UseHttpsRedirection();
|
// app.UseHttpsRedirection();
|
||||||
app.UseAuthorization();
|
app.UseAuthorization();
|
||||||
|
|
||||||
app.MapControllers();
|
app.MapControllers();
|
||||||
|
@ -116,7 +118,8 @@ app.UseRouting();
|
||||||
app.UseWebSockets();
|
app.UseWebSockets();
|
||||||
app.UseEndpoints(end =>
|
app.UseEndpoints(end =>
|
||||||
{
|
{
|
||||||
app.MapHub<ChatHub>("/chatHub");
|
end.MapControllers();
|
||||||
|
end.MapHub<ChatHub>("/chatHub");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user