From 550890070ecb282cf1dfc6542ef2cbc8d2c8bc99 Mon Sep 17 00:00:00 2001 From: Lucy Cifferello <12953208+elvece@users.noreply.github.com> Date: Fri, 16 Jun 2023 13:32:33 -0600 Subject: [PATCH] add query param of hostname --- src/Handler/Root.hs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Handler/Root.hs b/src/Handler/Root.hs index c762764..0137ef8 100644 --- a/src/Handler/Root.hs +++ b/src/Handler/Root.hs @@ -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" \ No newline at end of file +getRootR = do + hostname <- getsYesod $ registryHostname . appSettings + redirect $ T.pack "https://marketplace.start9.com?api=" <> hostname \ No newline at end of file