From 8cdaec6749d0cdcf137c77d914c2eea57d04ac40 Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Sun, 25 Feb 2024 14:31:05 +1100 Subject: [PATCH] feat: Add a publishing page to stop timeouts --- main.py | 6 +++++- templates/publishing.html | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 templates/publishing.html diff --git a/main.py b/main.py index 1c9b692..889862c 100644 --- a/main.py +++ b/main.py @@ -217,7 +217,7 @@ def site_post(): with open(f'sites/{i["name"]}.json', 'w') as file: json.dump(data, file) - return redirect('/site') + return redirect('/publishing') response = make_response(redirect('/')) response.set_cookie('auth', '', expires=0) @@ -333,6 +333,10 @@ def wallets(path): return render_template('404.html', year=datetime.datetime.now().year), 404 +@app.route('/publishing') +def publishing(): + return render_template('publishing.html') + # region Auth @app.route('/auth', methods=['POST']) def auth(): diff --git a/templates/publishing.html b/templates/publishing.html new file mode 100644 index 0000000..1649651 --- /dev/null +++ b/templates/publishing.html @@ -0,0 +1,37 @@ + + + + + + + HNS Links + + + + + + + + + + + + + + +

Publishing...

+

We are generating you SSL certificates and adding your site to our webserver.
We will redirect you when your site is ready.

+ + + + + + + \ No newline at end of file