diff options
| author | John MacFarlane <jgm@berkeley.edu> | 2022-08-09 10:56:51 -0700 |
|---|---|---|
| committer | John MacFarlane <jgm@berkeley.edu> | 2022-08-09 10:56:51 -0700 |
| commit | 5db3f96400f4344dc15cfb596e18dda769f44f86 (patch) | |
| tree | cdf3ec01f0173365977e06bb7dac47043ab0fb9d /server | |
| parent | 59ac2933c9878e1dfdb3fa14fbccf8d316d1d2a0 (diff) | |
server /babelmark - make text a required param.
Diffstat (limited to 'server')
| -rw-r--r-- | server/PandocServer.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/PandocServer.hs b/server/PandocServer.hs index 9cdc93962..c89502b51 100644 --- a/server/PandocServer.hs +++ b/server/PandocServer.hs @@ -48,7 +48,7 @@ type API = :<|> "batch" :> ReqBody '[JSON] [Params] :> Post '[JSON] [Text] :<|> - "babelmark" :> QueryParam "text" Text :> QueryParam "from" Text :> QueryParam "to" Text :> QueryFlag "standalone" :> Get '[JSON] Value + "babelmark" :> QueryParam' '[Required] "text" Text :> QueryParam "from" Text :> QueryParam "to" Text :> QueryFlag "standalone" :> Get '[JSON] Value :<|> "version" :> Get '[PlainText, JSON] Text @@ -65,7 +65,7 @@ server = convert :<|> pure pandocVersion where babelmark text' from' to' standalone' = do - res <- convert Params{ text = fromMaybe mempty text', + res <- convert Params{ text = text', from = from', to = to', standalone = Just standalone', wrapText = Nothing, columns = Nothing, template = Nothing } |
