mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-11-05 03:53:13 -05:00
25 lines
716 B
C#
25 lines
716 B
C#
using Microsoft.AspNetCore;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.Extensions.Configuration;
|
|
using System.IO;
|
|
|
|
namespace Kyoo
|
|
{
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
CreateWebHostBuilder(args).Build().Run();
|
|
}
|
|
|
|
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
|
|
WebHost.CreateDefaultBuilder(args)
|
|
.ConfigureAppConfiguration((hostingContext, config) =>
|
|
{
|
|
config.SetBasePath(Directory.GetCurrentDirectory());
|
|
config.AddJsonFile("config.json", false, true);
|
|
})
|
|
.UseStartup<Startup>();
|
|
}
|
|
}
|