get settings

This commit is contained in:
Lucy Cifferello
2020-03-31 09:12:38 -06:00
parent 8697c97c93
commit 8f4c8f21f6

View File

@@ -41,7 +41,7 @@ instance Show FileExtension where
getAppsManifestR :: Handler TypedContent
getAppsManifestR = do
AppSettings{..} <- appSettings <$> getYesod
let appResourceDir = resourcesDir </> "apps" </> "apps.yaml"
let appResourceDir = (resourcesDir . appSettings <$> getYesod) </> "apps" </> "apps.yaml"
respondSource typePlain $ CB.sourceFile appResourceDir .| awaitForever sendChunkBS
getSysR :: Extension "" -> Handler TypedContent