Add setup wizard

Added a setup wizard that appears on first run, or when no config dir is
found.
This commit is contained in:
2020-05-02 18:32:58 +01:00
parent 16a7ceb8ea
commit 922987454f
9 changed files with 710 additions and 48 deletions

View File

@@ -20,7 +20,7 @@ def admin():
@app.route('/<path:path>')
def static_proxy(path):
if 'form.html' not in path and 'admin.html' not in path:
if 'html' not in path:
return app.send_static_file(path)
return render_template('404.html',
contactMessage=config['ui']['contact_message']), 404