|
|
@@ -1,5 +1,5 @@
|
|
|
-using System.Net.Http.Headers;
|
|
|
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
|
|
+using Microsoft.AspNetCore.StaticFiles.Infrastructure;
|
|
|
using Microsoft.IdentityModel.Tokens;
|
|
|
using RunnersMeet.Server.GpxFormat;
|
|
|
using RunnersMeet.Server.Persistence;
|
|
|
@@ -65,6 +65,13 @@ public class AppServer
|
|
|
app.UseHttpsRedirection();
|
|
|
app.UseCors();
|
|
|
app.UseAuthorization();
|
|
|
+ app.UseDefaultFiles(new DefaultFilesOptions()
|
|
|
+ {
|
|
|
+ DefaultFileNames = new List<string>
|
|
|
+ {
|
|
|
+ "index.html"
|
|
|
+ }
|
|
|
+ });
|
|
|
app.UseStaticFiles();
|
|
|
|
|
|
app.MapControllers();
|