From 648d50c387e7ee3976bd673594ed10901075475f Mon Sep 17 00:00:00 2001 From: transtrike Date: Mon, 7 Dec 2020 22:39:49 +0200 Subject: API folder fixed --- API/Program.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 API/Program.cs (limited to 'API/Program.cs') diff --git a/API/Program.cs b/API/Program.cs new file mode 100644 index 0000000..8125904 --- /dev/null +++ b/API/Program.cs @@ -0,0 +1,24 @@ +using Microsoft.AspNetCore.Hosting; +using Microsoft.Extensions.Hosting; + +namespace API +{ + public class Program + { + private const int HTTPS_PORT = 5020; + + public static void Main(string[] args) + { + CreateHostBuilder(args).Build().Run(); + } + + public static IHostBuilder CreateHostBuilder(string[] args) => + Host.CreateDefaultBuilder(args) + .ConfigureWebHostDefaults(webBuilder => + { + webBuilder.ConfigureKestrel(opt => opt.ListenLocalhost(HTTPS_PORT)); + + webBuilder.UseStartup(); + }); + } +} -- cgit v1.2.3