remove index app and replace index route inside __init__
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
from flask import Blueprint, redirect, url_for, render_template
|
||||
bp = Blueprint('app', __name__, url_prefix = '/')
|
||||
|
||||
@bp.get('/')
|
||||
def index():
|
||||
return redirect(url_for('topics.all_topics'))
|
||||
Reference in New Issue
Block a user