diff options
author | stuebinm | 2022-03-03 15:59:22 +0100 |
---|---|---|
committer | stuebinm | 2022-03-19 19:57:18 +0100 |
commit | 4324662bbfd8fa15b813ceb545ae2ab5954fb9da (patch) | |
tree | a7a96dffd28a8557035401520d4a99131869a1d3 | |
parent | e730b8b904be35ebb21a26f788078de63207728c (diff) |
cwality-maps: remove unused parameters
the substitutions + templating seems reasonably powerfull, let's see how
far we get without custom-made specific things.
Diffstat (limited to '')
-rw-r--r-- | cwality-maps/Main.hs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cwality-maps/Main.hs b/cwality-maps/Main.hs index be2b0a6..f242b94 100644 --- a/cwality-maps/Main.hs +++ b/cwality-maps/Main.hs @@ -58,11 +58,8 @@ instance FromHttpApiData JsonFilename where newtype Tag = Tag Text deriving (Generic, FromJSON) -data MapParams = MapParams - { contentWarnings :: [Tag] - , backUrl :: Text - , exitUrl :: Maybe Text - , substs :: Map Text Text +newtype MapParams = MapParams + { substs :: Map Text Text } deriving (Generic, FromJSON) instance FromHttpApiData MapParams where |