flask test

This commit is contained in:
Bernd Reuther 2021-03-03 13:04:59 +01:00
parent 74ebd85220
commit 96116536a6

10
server.py Normal file
View File

@ -0,0 +1,10 @@
from flask import Flask
first_app = Flask(__name__)
@first_app.route("/")
def first_function():
return "<html><body><h1 style='color:red'>I am hosted on Raspberry Pi !!!</h1></body></html>"
if __name__ == "__main__":
first_app.run(host='0.0.0.0')