This commit is contained in:
Maximilian Tagher 2019-11-24 16:11:50 -05:00
parent 92afb1150a
commit 91b75741dd

View File

@ -611,6 +611,9 @@ htmlCount query count = do
-- > get CommentR
-- > (comment :: Comment) <- requireJSONResponse
--
-- > post UserR
-- > (json :: Value) <- requireJSONResponse
--
-- @since 1.6.9
requireJSONResponse :: (HasCallStack, FromJSON a) => YesodExample site a
requireJSONResponse = do