summary refs log tree commit diff
path: root/ModAS.Server/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ModAS.Server/Program.cs')
-rw-r--r--ModAS.Server/Program.cs8
1 files changed, 5 insertions, 3 deletions
diff --git a/ModAS.Server/Program.cs b/ModAS.Server/Program.cs
index 0b3d121..248243f 100644
--- a/ModAS.Server/Program.cs
+++ b/ModAS.Server/Program.cs
@@ -9,6 +9,7 @@ using Elastic.Apm.AspNetCore;
 using Elastic.Apm.NetCoreAll;
 using LibMatrix;
 using LibMatrix.Services;
+using ModAS.Server.Authentication;
 using ModAS.Server.Services;
 using MxApiExtensions.Services;
 
@@ -114,13 +115,14 @@ Agent.AddFilter((ISpan span) => {
     return span;
 });
 
-///wwwroot
 app.UseFileServer();
-// app.UseStaticFiles();
-// app.UseDirectoryBrowser();
+
+app.UseRouting();
 
 app.UseCors("Open");
 
 app.MapControllers();
 
+app.UseMiddleware<AuthMiddleware>();
+
 app.Run();
\ No newline at end of file