1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-06-27 00:41:00 +02:00

Remove Swarm everywhere.

This hasn't been tested
This commit is contained in:
Florent Daigniere
2022-11-24 16:23:53 +01:00
parent 2104c04e3b
commit d0631558c7
17 changed files with 9 additions and 1398 deletions

View File

@ -78,15 +78,7 @@ def build_app(path):
@prefix_bp.route("/")
@root_bp.route("/")
def wizard():
return flask.render_template('wizard.html')
@prefix_bp.route("/submit_flavor", methods=["POST"])
@root_bp.route("/submit_flavor", methods=["POST"])
def submit_flavor():
data = flask.request.form.copy()
subnet6 = random_ipv6_subnet()
steps = sorted(os.listdir(os.path.join(path, "templates", "steps", data["flavor"])))
return flask.render_template('wizard.html', flavor=data["flavor"], steps=steps, subnet6=subnet6)
return flask.render_template('setup.html', subnet6=random_ipv6_subnet())
@prefix_bp.route("/submit", methods=["POST"])
@root_bp.route("/submit", methods=["POST"])