summary refs log tree commit diff
path: root/ModAS.Server/Program.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2023-12-31 12:00:40 +0100
committerRory& <root@rory.gay>2023-12-31 12:00:40 +0100
commitc5b72e6f002a637d542068be88d70936150c8818 (patch)
treec7d7a5c99329e88bce47b60b566b8398c0dd4a68 /ModAS.Server/Program.cs
parentRoom query (diff)
downloadModAS-c5b72e6f002a637d542068be88d70936150c8818.tar.xz
Add auth, start of commit script
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