Closed ihodes closed 9 years ago
e.g. we now get this
In [35]: req.post('http://localhost:5000/api/projectsasd', data={'name': 'whoa there'}, headers={'content-type': 'application/json'}).json()
Out[35]:
{u'message': u'Not Found. You have requested this URI [/api/projectsasd] but did you mean /api/projects or /api/projects/<int:project_id> ?',
u'status': 404}
Simple enough! Looks good to me.
Also remove the JSON 404 handler; this is handled for us by Flask.