2024-03-25 02:14:42 +00:00
|
|
|
module JSONSettings where
|
|
|
|
|
|
|
|
import GHC.Generics
|
|
|
|
import Data.Aeson (FromJSON)
|
|
|
|
|
|
|
|
data JSONSettings = JSONSettings
|
|
|
|
{ postgrest_url :: String
|
|
|
|
, jwt :: String
|
|
|
|
, postgrest_fetch_count :: Int
|
|
|
|
, media_root :: String
|
2024-03-25 23:05:34 +00:00
|
|
|
, static_serve_path :: String
|
|
|
|
, static_serve_url_root :: String
|
2024-03-25 02:14:42 +00:00
|
|
|
} deriving (Show, Generic)
|
|
|
|
|
|
|
|
instance FromJSON JSONSettings
|