From 2bf3bc4865818de3f335cbb699ce254ca2c68c1f Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Tue, 7 Aug 2018 08:17:56 -0500 Subject: [PATCH] Working toward hosting Seeing different behavior when this is sitting behind nginx; working toward a solution --- src/api/MyPrayerJournal.Api/Program.fs | 1 + src/api/MyPrayerJournal.sln | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/MyPrayerJournal.Api/Program.fs b/src/api/MyPrayerJournal.Api/Program.fs index f777256..9aa0ae7 100644 --- a/src/api/MyPrayerJournal.Api/Program.fs +++ b/src/api/MyPrayerJournal.Api/Program.fs @@ -53,6 +53,7 @@ module Configure = /// Routes for the available URLs within myPrayerJournal let webApp = router Handlers.Error.notFound [ + route "/" (htmlFile "wwwroot/index.html") subRoute "/api/" [ GET [ route "journal" Handlers.Journal.journal diff --git a/src/api/MyPrayerJournal.sln b/src/api/MyPrayerJournal.sln index f2ff85a..959b629 100644 --- a/src/api/MyPrayerJournal.sln +++ b/src/api/MyPrayerJournal.sln @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.27703.2035 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{F2A71F9B-5D33-465A-A702-920D77279786}") = "MyPrayerJournal.Api", "MyPrayerJournal.Api\MyPrayerJournal.Api.fsproj", "{E0E5240C-00DC-428A-899A-DA4F06625B8A}" +Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "MyPrayerJournal.Api", "MyPrayerJournal.Api\MyPrayerJournal.Api.fsproj", "{E0E5240C-00DC-428A-899A-DA4F06625B8A}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution