You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
550 B

from flask import Flask, redirect, request, render_template
from gentemp import gen_config
from gencerts import gen_certs
from createzip import create_zip
app = Flask(__name__)
def index():
return render_template("base.html")
@app.route("/gen", methods=["POST"])
def gen():
gen_certs(str(request.form["client"]), str(request.form["ip"]))
gen_config(request.form["client"], request.form["ip"])
return redirect("/")
if __name__ == "__main__":, debug=True)