diff --git a/test/Servant/JQuerySpec.hs b/test/Servant/JQuerySpec.hs index 8952018f..ce06e98f 100644 --- a/test/Servant/JQuerySpec.hs +++ b/test/Servant/JQuerySpec.hs @@ -13,11 +13,12 @@ import Language.ECMAScript3.Parser (parseFromString) import Test.Hspec import Servant.API +import Servant.API.ContentTypes import Servant.JQuery import Servant.JQuerySpec.CustomHeaders -type TestAPI = "simple" :> ReqBody '[JSON] String :> Post '[JSON] Bool - :<|> "has.extension" :> Get '[JSON] Bool +type TestAPI = "simple" :> ReqBody '[JSON,FormUrlEncoded] String :> Post '[JSON] Bool + :<|> "has.extension" :> Get '[FormUrlEncoded,JSON] Bool type TopLevelRawAPI = "something" :> Get '[JSON] Int :<|> Raw