add query param of hostname

This commit is contained in:
Lucy Cifferello
2023-06-16 13:32:33 -06:00
parent a3efb4e90b
commit 550890070e

View File

@@ -3,6 +3,9 @@ import Startlude
import Yesod
import Foundation
import qualified Data.Text as T
import Settings (AppSettings(registryHostname))
getRootR :: HandlerFor RegistryCtx ()
getRootR = redirect $ T.pack "https://marketplace.start9.com"
getRootR = do
hostname <- getsYesod $ registryHostname . appSettings
redirect $ T.pack "https://marketplace.start9.com?api=" <> hostname