I have made an flask API which would take input directory as input parameter by get http request. It is working fine on port 5000 on the local machine. Now I want that working api to run on a web server so that I can use it over internet. I tried apache 2 server to do the work but it wasn't successful.
# API
app = Flask(__name__)
@app.route('/')
def home():
return "HOME PAGE LOADED"
@app.route('/runDocumentManager', methods=["GET"])
def runDocumentManager():
# pdf path
file = request.args.get('input_path')
.
.
.
if __name__ == '__main__':
app.run()