sample-flaskServer/app.py
FluffyCube9343 145f20c127 Flask server
2023-01-12 21:42:22 -05:00

19 lines
401 B
Python

from flask import Flask, render_template, request, jsonify
from flask_assets import Bundle, Environment
import random
app = Flask(__name__)
assets = Environment(app)
css = Bundle("src/style.css", output="dist/main.css")
assets.register("css", css)
css.build()
@app.route("/")
def homepage():
return render_template("index.html", text="bye")
if __name__ == "__main__":
app.run(debug=True)