jankboard/app/server.py

11 lines
186 B
Python

from flask import Flask
import random
app = Flask(__name__)
@app.route("/rand")
def hello():
return str(random.randint(0, 100))
if __name__ == "__main__":
app.run(debug=True)