aboutsummaryrefslogtreecommitdiff
path: root/Main
diff options
context:
space:
mode:
Diffstat (limited to 'Main')
-rw-r--r--Main/Startup.cs11
1 files changed, 3 insertions, 8 deletions
diff --git a/Main/Startup.cs b/Main/Startup.cs
index 2722747..24f2a74 100644
--- a/Main/Startup.cs
+++ b/Main/Startup.cs
@@ -1,6 +1,4 @@
-using System;
using System.IO;
-using System.Collections.Generic;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
@@ -9,13 +7,10 @@ using Microsoft.Extensions.FileProviders;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Metadata;
+
using Hangfire;
using Hangfire.MySql.Core;
-
-using Classes;
using Database;
-using Aggregator.Parser;
namespace Server {
public class Startup {
@@ -47,10 +42,10 @@ namespace Server {
app.UseHsts();
}
- app.UseDefaultFiles();
+ // app.UseDefaultFiles();
string website_path = Path.Combine(
Directory.GetParent(Directory.GetCurrentDirectory()).ToString(),
- "Website");
+ "Website/");
app.UseStaticFiles(new StaticFileOptions {
FileProvider = new PhysicalFileProvider(website_path),
RequestPath = "/test"