add flask app for rest api