aboutsummaryrefslogtreecommitdiff
path: root/API/Program.cs
blob: 8125904874a310e01612bc9a468e62958f3960b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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<Startup>();
                });
    }
}