mirror of
https://github.com/Start9Labs/registry.git
synced 2026-03-31 12:13:40 +00:00
scaffolding ready for s9pks
This commit is contained in:
@@ -4,15 +4,18 @@ import Data.Aeson
|
||||
import Data.Aeson.Types
|
||||
import Data.Maybe
|
||||
import Data.Version (showVersion)
|
||||
import Lib.Types.ServerApp
|
||||
import Lib.Types.Semver
|
||||
import Paths_start9_registry (version)
|
||||
import Startlude
|
||||
|
||||
configBasePath :: FilePath
|
||||
configBasePath = "./config"
|
||||
configPath :: FilePath
|
||||
configPath = "./config"
|
||||
|
||||
resourcesPath :: FilePath
|
||||
resourcesPath = "./resources"
|
||||
|
||||
registryVersion :: AppVersion
|
||||
registryVersion = fromJust . parseMaybe parseJSON . String . toS . showVersion $ version
|
||||
|
||||
getRegistryHostname :: IsString a => a
|
||||
getRegistryHostname = "registry"
|
||||
getRegistryHostname = "registry.start9labs.com"
|
||||
|
||||
Reference in New Issue
Block a user