mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-25 12:05:32 +03:00
16 lines
306 B
Python
Executable File
16 lines
306 B
Python
Executable File
#!/usr/bin/python
|
|
from flask import Flask
|
|
import os
|
|
|
|
app = Flask(__name__)
|
|
|
|
|
|
@app.route("/hello")
|
|
def hello():
|
|
return "Hello World!"
|
|
|
|
|
|
if __name__ == "__main__":
|
|
ssl_dir = os.path.dirname(os.path.realpath(__file__))
|
|
app.run(port=8001, ssl_context=(ssl_dir + "/cert.pem", ssl_dir + "/key.pem"))
|