mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-12-21 18:11:43 +03:00
15 lines
305 B
Python
Executable File
15 lines
305 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'))
|
|
|