19 lines
333 B
Python
Executable File
19 lines
333 B
Python
Executable File
#!/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)
|