Skip to content

Commit

Permalink
#27 added some supporting code for a SPA (Angular) frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
mgroves committed Sep 29, 2023
1 parent ad4f028 commit 374038a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions Conduit/Conduit.Web/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 374038a

Please sign in to comment.