ar_redadeg/api/hello.py
MaelREBOUX fd46fea548 API : first shot
fonctionnel mais il faut que la commande uwsgi -s qui crée le socket soit active dans le shell.
2021-03-30 00:15:25 +02:00

17 lines
258 B
Python

#!usr/local/bin/python
# -*- coding: utf-8 -*-
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "<h1 style='color:blue'>Hello There!</h1>"
if __name__ == "__main__":
app.debug = True
app.run(host='0.0.0.0')