Can someone tell me how to get a Flask application up and running under LiteSpeed?
How would I route all incoming requests to: http://www.mydomain.com/api to the Python Flask app that looks something like this?
Thanks in advance.
How would I route all incoming requests to: http://www.mydomain.com/api to the Python Flask app that looks something like this?
Code:
def application(environ, start_response):
status = '200 OK'
output = 'Hello World!'
response_headers = [('Content-type', 'text/plain'), ('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output]
Last edited by a moderator: