aboutsummaryrefslogtreecommitdiff
path: root/Main/Startup.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Main/Startup.cs')
-rw-r--r--Main/Startup.cs11
1 files changed, 3 insertions, 8 deletions
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();