diff options
| author | transtrike <transtrike@gmail.com> | 2020-12-07 22:39:49 +0200 |
|---|---|---|
| committer | transtrike <transtrike@gmail.com> | 2020-12-07 22:39:49 +0200 |
| commit | 648d50c387e7ee3976bd673594ed10901075475f (patch) | |
| tree | b3a0f754ca398c65afc847ea4049cad21398a0ab /API/Program.cs | |
| parent | c5dc3763babe083c88dbc927f996fb1bdda80359 (diff) | |
| download | DevHive-648d50c387e7ee3976bd673594ed10901075475f.tar DevHive-648d50c387e7ee3976bd673594ed10901075475f.tar.gz DevHive-648d50c387e7ee3976bd673594ed10901075475f.zip | |
API folder fixed
Diffstat (limited to 'API/Program.cs')
| -rw-r--r-- | API/Program.cs | 24 |
1 files changed, 24 insertions, 0 deletions
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<Startup>();
+ });
+ }
+}
|
