aboutsummaryrefslogtreecommitdiff
path: root/API/Program.cs
blob: eedd5e1ae7e5a64417a148b8f000df5168d824f1 (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 = 5000;

		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>();
				});
	}
}