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

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -