OOPified.

This commit is contained in:
Patrick_Pluto 2024-09-16 13:44:48 +02:00
parent e3cdde8a74
commit 43043a08e9
2 changed files with 30 additions and 24 deletions

View file

@ -1,12 +1,14 @@
from flask import Flask, send_from_directory
app = Flask(__name__)
class WebHost:
@staticmethod
def main_page():
app = Flask(__name__)
@app.route('/')
def index():
return app.send_static_file('index.html')
@app.route('/')
def index():
return app.send_static_file('index.html')
if __name__ == '__main__':
app.run(debug=True)
if __name__ == '__main__':
app.run(debug=True)