mirror of
https://github.com/Start9Labs/registry.git
synced 2026-04-01 20:44:15 +00:00
add query param of hostname
This commit is contained in:
@@ -3,6 +3,9 @@ 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))
|
||||||
|
|
||||||
getRootR :: HandlerFor RegistryCtx ()
|
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
|
||||||
Reference in New Issue
Block a user