summaryrefslogtreecommitdiff
path: root/DSACore/Program.cs
blob: 8af0a74142696a7fba6e8f91297d5494d659d191 (plain)
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 DSALib.DSA_Game;
using DSALib.FireBase;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;

namespace DSACore
{
    public class Program
    {
        public static void Main(string[] args)
        {
            Database.GetGroup(0).Wait();
            Dsa.Startup();
            CreateWebHostBuilder(args).Build().Run();
        }

        public static IWebHostBuilder CreateWebHostBuilder(string[] args)
        {
            return WebHost.CreateDefaultBuilder(args)
                .UseStartup<Startup>()
                .UseUrls("http://0.0.0.0:5000");
        }
    }
}