Skip to content

Commit

Permalink
Added Preview Network Support
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Mazen-Khaddaj committed Aug 30, 2023
1 parent deb1e13 commit cf1e63f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Maestro/Client/Env.hs
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ data MaestroEnv (v :: MaestroApiVersion) = MaestroEnv
, _maeToken :: !MaestroToken
}

data MaestroNetwork = Mainnet | Preprod
data MaestroNetwork = Mainnet | Preprod | Preview

maestroBaseUrl :: MaestroNetwork -> MaestroApiVersion -> String
maestroBaseUrl Preview v = "https://preview.gomaestro-api.org/" <> show v
maestroBaseUrl Preprod v = "https://preprod.gomaestro-api.org/" <> show v
maestroBaseUrl Mainnet v = "https://mainnet.gomaestro-api.org/" <> show v

Expand Down

0 comments on commit cf1e63f

Please sign in to comment.