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 Foundation
|
||||
import qualified Data.Text as T
|
||||
import Settings (AppSettings(registryHostname))
|
||||
import Settings (AppSettings(registryHostname, marketplaceName))
|
||||
|
||||
getRootR :: HandlerFor RegistryCtx ()
|
||||
getRootR = do
|
||||
hostname <- getsYesod $ registryHostname . appSettings
|
||||
redirect $ T.pack "https://marketplace.start9.com?api=" <> hostname
|
||||
url <- getsYesod $ registryHostname . appSettings
|
||||
name <- getsYesod $ marketplaceName . appSettings
|
||||
redirect $ T.pack "https://marketplace.start9.com?api=" <> url <> T.pack "&name=" <> name
|
||||
Reference in New Issue
Block a user