API für Geo Positions Update mit Testscript

This commit is contained in:
concierge committed 2026-11-04 14:42:45 +01:00
1 parent 23a9df66f4
commit d54a986c14
16 files changed
+1027 -6

No files matched your search

+9 -2
View File
@@ -1,9 +1,10 @@
"""
Accountverwaltung
"""
from flask import Blueprint, render_template, g
from flask import Blueprint, make_response, render_template, g
from cmbnet.auth import role_required
from cmbnet.db import get_db
from cmbnet.services.api_token_service import ApiTokenService
admin_accounts_bp = Blueprint('admin', __name__)
@@ -12,7 +13,13 @@ admin_accounts_bp = Blueprint('admin', __name__)
@role_required('Administrator')
def dashboard(**kwargs):
"""Admin Dashboard"""
return render_template('admin/dashboard.html')
response = make_response(render_template(
'admin/dashboard.html',
api_tokens=ApiTokenService.list_for_tenant(g.tenant_id)
))
# Die Seite enthält Zugriffstoken und darf nicht im Browser-Cache landen.
response.headers['Cache-Control'] = 'no-store'
return response
@admin_accounts_bp.route('/accounts')