mirror of
https://codeberg.org/catask-org/catask.git
synced 2025-04-19 21:33:41 -05:00
add some new admin page routes
This commit is contained in:
parent
f316d89e9d
commit
5f1f154789
1 changed files with 21 additions and 0 deletions
21
app.py
21
app.py
|
@ -227,6 +227,11 @@ def index():
|
|||
def information():
|
||||
return render_template('admin/categories/instance.html')
|
||||
|
||||
@admin_bp.route('/accessibility/', methods=['GET', 'POST'])
|
||||
@loginRequired
|
||||
def accessibility():
|
||||
return render_template('admin/categories/accessibility.html')
|
||||
|
||||
@admin_bp.route('/general/', methods=['GET', 'POST'])
|
||||
@loginRequired
|
||||
def general():
|
||||
|
@ -237,6 +242,11 @@ def general():
|
|||
def customize():
|
||||
return render_template('admin/categories/customize.html')
|
||||
|
||||
@admin_bp.route('/antispam/', methods=['GET', 'POST'])
|
||||
@loginRequired
|
||||
def antispam():
|
||||
return render_template('admin/categories/antispam.html')
|
||||
|
||||
@admin_bp.route('/emojis/', methods=['GET', 'POST'])
|
||||
@loginRequired
|
||||
def emojis():
|
||||
|
@ -274,6 +284,17 @@ def blacklist():
|
|||
|
||||
return render_template('admin/categories/blacklist.html', blacklist=blacklist)
|
||||
|
||||
# TODO: implement deleting exports
|
||||
|
||||
@admin_bp.route('/import-export/', methods=['GET'])
|
||||
@loginRequired
|
||||
def importExport():
|
||||
if os.path.exists(const.exportsFile):
|
||||
exports = func.loadJSON(const.exportsFile)
|
||||
else:
|
||||
exports = None
|
||||
return render_template('admin/categories/import.html', exports=exports)
|
||||
|
||||
# TODO: implement first-launch setup route
|
||||
"""
|
||||
@admin_bp.route('/post-install/', methods=['GET', 'POST'])
|
||||
|
|
Loading…
Add table
Reference in a new issue