summaryrefslogtreecommitdiff
path: root/DSACore/Program.cs
blob: 288973430282fd1a0e7e5c88fa823ce0134aedb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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");
        }
    }
}