public pages content
This commit is contained in:
@@ -2157,12 +2157,19 @@ def init_routes(main_bp):
|
||||
@login_required
|
||||
@require_password_change
|
||||
def development_wiki():
|
||||
if not os.environ.get('MASTER', 'false').lower() == 'true':
|
||||
flash('This page is only available in master instances.', 'error')
|
||||
return redirect(url_for('main.dashboard'))
|
||||
|
||||
return render_template('wiki/base.html')
|
||||
|
||||
@main_bp.route('/support-articles')
|
||||
@login_required
|
||||
@require_password_change
|
||||
def support_articles():
|
||||
# Check if this is a master instance
|
||||
is_master = os.environ.get('MASTER', 'false').lower() == 'true'
|
||||
if not is_master:
|
||||
flash('This page is only available on the master instance.', 'error')
|
||||
return redirect(url_for('main.dashboard'))
|
||||
return render_template('admin/support_articles.html')
|
||||
|
||||
@main_bp.route('/api/version')
|
||||
def api_version():
|
||||
# Get version information from environment variables
|
||||
|
||||
Reference in New Issue
Block a user