mirror of
https://github.com/aljazceru/CTFd.git
synced 2026-01-03 22:24:23 +01:00
Fixes unstyled Setup UI (#291)
* Changing /static to /themes * Adding test to make sure setup behavior works
This commit is contained in:
@@ -13,14 +13,6 @@ from CTFd import utils
|
||||
views = Blueprint('views', __name__)
|
||||
|
||||
|
||||
@views.before_request
|
||||
def redirect_setup():
|
||||
if request.path.startswith("/static"):
|
||||
return
|
||||
if not utils.is_setup() and request.path != "/setup":
|
||||
return redirect(url_for('views.setup'))
|
||||
|
||||
|
||||
@views.route('/setup', methods=['GET', 'POST'])
|
||||
def setup():
|
||||
# with app.app_context():
|
||||
|
||||
Reference in New Issue
Block a user