diff options
author | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-21 15:48:41 +0000 |
---|---|---|
committer | Aryadev Chavali <aryadevchavali1@gmail.com> | 2019-02-21 15:48:41 +0000 |
commit | 0c1eafe2c8d55c76a9756d722ef8c6cce065cc10 (patch) | |
tree | 4e5231af5975db6543b008443545642eb9d19c55 /Main/Startup.cs | |
parent | 450bcb83ee18e78941324657c0e471f8b5e6ffb4 (diff) | |
download | newsaggregator-0c1eafe2c8d55c76a9756d722ef8c6cce065cc10.tar.gz newsaggregator-0c1eafe2c8d55c76a9756d722ef8c6cce065cc10.tar.bz2 newsaggregator-0c1eafe2c8d55c76a9756d722ef8c6cce065cc10.zip |
Moved website frontend to wwwroot - a problem for another day
Diffstat (limited to 'Main/Startup.cs')
-rw-r--r-- | Main/Startup.cs | 11 |
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();
|