mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-26 02:11:53 +00:00
add name to root query params
This commit is contained in:
@@ -3,9 +3,10 @@ import Startlude
|
|||||||
import Yesod
|
import Yesod
|
||||||
import Foundation
|
import Foundation
|
||||||
import qualified Data.Text as T
|
import qualified Data.Text as T
|
||||||
import Settings (AppSettings(registryHostname))
|
import Settings (AppSettings(registryHostname, marketplaceName))
|
||||||
|
|
||||||
getRootR :: HandlerFor RegistryCtx ()
|
getRootR :: HandlerFor RegistryCtx ()
|
||||||
getRootR = do
|
getRootR = do
|
||||||
hostname <- getsYesod $ registryHostname . appSettings
|
url <- getsYesod $ registryHostname . appSettings
|
||||||
redirect $ T.pack "https://marketplace.start9.com?api=" <> hostname
|
name <- getsYesod $ marketplaceName . appSettings
|
||||||
|
redirect $ T.pack "https://marketplace.start9.com?api=" <> url <> T.pack "&name=" <> name
|
||||||
Reference in New Issue
Block a user