Compare commits
No commits in common. "9d882f7a5591066a7753331517384ac04226a71f" and "25dd659291a27ba7990f78a5a0a97e10a561bbfe" have entirely different histories.
9d882f7a55
...
25dd659291
|
@ -13,7 +13,6 @@ 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");
|
||||
|
@ -80,7 +79,6 @@ builder.Services.AddCors(option =>
|
|||
option.AddPolicy("CorsPolicy", builder =>
|
||||
{
|
||||
builder
|
||||
.AllowAnyOrigin()
|
||||
.AllowAnyMethod()
|
||||
.AllowAnyHeader()
|
||||
.AllowCredentials()
|
||||
|
@ -107,7 +105,7 @@ else
|
|||
}
|
||||
|
||||
|
||||
// app.UseHttpsRedirection();
|
||||
app.UseHttpsRedirection();
|
||||
app.UseAuthorization();
|
||||
|
||||
app.MapControllers();
|
||||
|
@ -118,8 +116,7 @@ app.UseRouting();
|
|||
app.UseWebSockets();
|
||||
app.UseEndpoints(end =>
|
||||
{
|
||||
end.MapControllers();
|
||||
end.MapHub<ChatHub>("/chatHub");
|
||||
app.MapHub<ChatHub>("/chatHub");
|
||||
});
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user