Merge pull request #5 from sanderdatema/patch-1

This commit is contained in:
Gervasio Marchand 2022-12-16 07:44:39 -08:00 committed by GitHub
commit a2d351161c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,12 @@ using FakeRelay.Core;
using FakeRelay.Web.Services;
using Microsoft.AspNetCore.HttpOverrides;
var builder = WebApplication.CreateBuilder(args);
var webApplicationOptions = new WebApplicationOptions
{
ContentRootPath = AppContext.BaseDirectory,
Args = args,
};
var builder = WebApplication.CreateBuilder(webApplicationOptions);
Config.Init(builder.Configuration.GetValue<string>("CONFIG_PATH"));
// Add services to the container.