import flask's request in route, seems hacky