From 374038afc16dab5c94327937f3a6cba599d2bf91 Mon Sep 17 00:00:00 2001 From: "Matthew D. Groves" Date: Fri, 29 Sep 2023 15:12:43 -0400 Subject: [PATCH] #27 added some supporting code for a SPA (Angular) frontend --- .gitignore | 2 ++ Conduit/Conduit.Web/Program.cs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index f587494bb3..5a32fbbfc2 100644 --- a/.gitignore +++ b/.gitignore @@ -335,3 +335,5 @@ appsettings.Production.json /Conduit/migrateup.bat /Conduit/Conduit.Tests/integrationtestsettings.json /Conduit/*.lutconfig +/Conduit/migrateup.azure.bat +/Conduit/Conduit.Web/wwwroot diff --git a/Conduit/Conduit.Web/Program.cs b/Conduit/Conduit.Web/Program.cs index 5435038ffb..fa5dc7ef3d 100644 --- a/Conduit/Conduit.Web/Program.cs +++ b/Conduit/Conduit.Web/Program.cs @@ -67,6 +67,9 @@ public static void Main(string[] args) app.UseCors("CorsPolicy"); + app.UseStaticFiles(); + app.MapFallbackToFile("index.html"); + app.Run(); // Add the following line to close the Couchbase connection inside the app.Run() method at the end of Program.cs