Closed jdabtieu closed 1 year ago
Change the code at the bottom of application.py to return the 500 template for regular 500s, but if the URL path starts with /api/, return a json_fail 500 instead of an HTML 500
/api/
return json_fail("Internal Server Error", 500)
Change the code at the bottom of application.py to return the 500 template for regular 500s, but if the URL path starts with
/api/
, return a json_fail 500 instead of an HTML 500