haskell - Yesod: content negotiation in POST request handlers -
i want have same handler (route) post request content type application/x-www-form-urlencoded , application/json. first 1 used forms in hamlet templates , second 1 json api. possible define handler both cases or it's better create new route (and handler) api requests?
Comments
Post a Comment