jankboard/app/server.py

12 lines
186 B
Python
Raw Normal View History

2024-02-21 13:49:39 -08:00
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)