This commit is contained in:
Lucy Cifferello
2023-06-19 14:52:38 -06:00
parent dd4d8b2856
commit 0e41fdac5c

View File

@@ -7,6 +7,5 @@ import Settings (AppSettings(registryHostname, marketplaceName))
getRootR :: HandlerFor RegistryCtx () getRootR :: HandlerFor RegistryCtx ()
getRootR = do getRootR = do
url <- getsYesod $ registryHostname . appSettings (url, name) <- getsYesod $ (registryHostname &&& marketplaceName) . appSettings
name <- getsYesod $ marketplaceName . appSettings
redirect $ T.pack "https://marketplace.start9.com?api=" <> url <> T.pack "&name=" <> name redirect $ T.pack "https://marketplace.start9.com?api=" <> url <> T.pack "&name=" <> name