9
0
mirror of https://github.com/donlon/cloudflare-error-page.git synced 2025-12-19 14:59:28 +00:00

editor/server: redirect to editor page from root

This commit is contained in:
Anthony Donlon
2025-11-22 13:36:56 +08:00
parent 818537daef
commit 48525f7a51

View File

@@ -83,6 +83,10 @@ def create_app(test_config=None) -> Flask:
with app.app_context():
db.create_all()
@app.route('/')
def index():
return redirect(url_for('editor.index'))
@app.route('/health')
def health():
return '', 204