Servicing html requests with Eve
问题 I am attempting to build a MongoDB-backed Flask application which serves from the same endpoints: A HTML web interface by default A JSON response if Content-Type == application/json The idea is that both a user consuming my application with a browser and a service consuming my API programatically can both hit http://myapp.com/users/12345 The former is served a HTML response and the latter is served a JSON response. As I understand this is in keeping with 'pure' REST, in contrast to the