Had to make some changes so that the app would run including:
remove all relative imports (found via ag -i '(from\ +\.\ *(\w+))|(import\ +\.\ *(\w+))') since they were causing errors
add the methods argument to @APP.route so that POST will work, flask will also return a 405 if it receives a request not in the list so remove the last if statement.
Had to make some changes so that the app would run including:
ag -i '(from\ +\.\ *(\w+))|(import\ +\.\ *(\w+))') since they were causing errorsmethodsargument to@APP.routeso that POST will work, flask will also return a 405 if it receives a request not in the list so remove the last if statement.APP.runso I can make requests to the APIAlso adds flake8 and style fixes.