From 0c1eafe2c8d55c76a9756d722ef8c6cce065cc10 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 21 Feb 2019 15:48:41 +0000 Subject: Moved website frontend to wwwroot - a problem for another day --- Main/Startup.cs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'Main/Startup.cs') diff --git a/Main/Startup.cs b/Main/Startup.cs index 24f2a74..804c4f7 100644 --- a/Main/Startup.cs +++ b/Main/Startup.cs @@ -31,6 +31,7 @@ namespace Server { }); services.AddHangfire(options => options.UseStorage(new MySqlStorage(Configuration.GetConnectionString("Storage")))); + services.AddDirectoryBrowser(); } public void Configure(IApplicationBuilder app, IHostingEnvironment env) { @@ -42,14 +43,8 @@ namespace Server { app.UseHsts(); } - // app.UseDefaultFiles(); - string website_path = Path.Combine( - Directory.GetParent(Directory.GetCurrentDirectory()).ToString(), - "Website/"); - app.UseStaticFiles(new StaticFileOptions { - FileProvider = new PhysicalFileProvider(website_path), - RequestPath = "/test" - }); + app.UseDefaultFiles(); + app.UseStaticFiles(); app.UseHangfireDashboard(); app.UseHangfireServer(); -- cgit v1.2.3-13-gbd6f