first commit

This commit is contained in:
2025-05-23 08:04:13 +02:00
commit 488305c252
4 changed files with 1789 additions and 0 deletions

18
flaskserver.py Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env python3
from flask import Flask, render_template, request, redirect, jsonify
import sys
import time
import threading
app = Flask(__name__)
webpage = sys.argv[1]
@app.route('/')
def index():
return render_template(f'{webpage}.html')
if __name__ == '__main__':
app.run(host="0.0.0.0", port=80, debug=True)