summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI.Web/Program.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-09-23 20:16:52 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-09-23 20:16:52 -0400
commit36a04a6e77eac74be660dc9848b6045834479f4f (patch)
tree1176a8920a7656f720e0b36ebc4fe45b26cc202a /src/StardewModdingAPI.Web/Program.cs
parentf0e2117f70455bd9883321ae5b0bf40562f2d5de (diff)
parent57111a6e8fa6a23bb56f515b50f8b7ea5924d49f (diff)
downloadSMAPI-36a04a6e77eac74be660dc9848b6045834479f4f.tar.gz
SMAPI-36a04a6e77eac74be660dc9848b6045834479f4f.tar.bz2
SMAPI-36a04a6e77eac74be660dc9848b6045834479f4f.zip
Merge branch 'feature/update-check-api' into develop
Diffstat (limited to 'src/StardewModdingAPI.Web/Program.cs')
-rw-r--r--src/StardewModdingAPI.Web/Program.cs26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/StardewModdingAPI.Web/Program.cs b/src/StardewModdingAPI.Web/Program.cs
new file mode 100644
index 00000000..eeecb791
--- /dev/null
+++ b/src/StardewModdingAPI.Web/Program.cs
@@ -0,0 +1,26 @@
+using System.IO;
+using Microsoft.AspNetCore.Hosting;
+
+namespace StardewModdingAPI.Web
+{
+ /// <summary>The main app entry point.</summary>
+ public class Program
+ {
+ /*********
+ ** Public methods
+ *********/
+ /// <summary>The main app entry point.</summary>
+ /// <param name="args">The command-line arguments.</param>
+ public static void Main(string[] args)
+ {
+ // configure web server
+ new WebHostBuilder()
+ .UseKestrel()
+ .UseContentRoot(Directory.GetCurrentDirectory())
+ .UseIISIntegration()
+ .UseStartup<Startup>()
+ .Build()
+ .Run();
+ }
+ }
+}