aboutsummaryrefslogtreecommitdiff
path: root/Main
diff options
context:
space:
mode:
Diffstat (limited to 'Main')
-rw-r--r--Main/Startup.cs15
1 files changed, 9 insertions, 6 deletions
diff --git a/Main/Startup.cs b/Main/Startup.cs
index 2857e5b..6474fcc 100644
--- a/Main/Startup.cs
+++ b/Main/Startup.cs
@@ -46,14 +46,17 @@ namespace Main {
}
app.UseDefaultFiles();
- app.UseStaticFiles();
+ app.UseStaticFiles(new StaticFileOptions {
+ FileProvider = new PhysicalFileProvider(
+ Path.Combine(
+ Directory.GetParent(Directory.GetCurrentDirectory()).ToString(),
+ "Frontend"
+ )
+ )
+ });
- app.UseHangfireDashboard();
app.UseHangfireServer();
-
- var context = app.ApplicationServices.GetService<DatabaseContext>();
-
- RecurringJob.AddOrUpdate(() => AggregatorJob.Process(context), Cron.HourInterval(3)); // add database update as a job
+ app.UseHangfireDashboard();
}
}
}