Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,11 @@ def load_user(user_id):
}
)

@app.route('/')
def index():
from flask import redirect, url_for
return redirect(url_for('auth.login'))

# Register blueprints
from app.routes.admin import admin_bp
from app.routes.api import api_bp
Expand Down
7 changes: 0 additions & 7 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
import logging
import os

from flask import Response, redirect, url_for

from app import create_app, socketio

# Configure logging to reduce noise
Expand All @@ -22,11 +20,6 @@
app = create_app(_config_name)


@app.route('/')
def home() -> Response:
return redirect(url_for('auth.login'))


if __name__ == '__main__':
if _config_name == 'production':
raise RuntimeError(
Expand Down
Loading