Fix: Welten-Config Endpoint-Pfad doppeltes /profile/ entfernt — /api/profile/world-config korrekt (SW by-v659)

This commit is contained in:
rene 2026-05-03 20:47:31 +02:00
parent eca8d1455d
commit 71a13d695e
4 changed files with 8 additions and 8 deletions

View file

@ -121,7 +121,7 @@ async def upload_avatar(
# ----------------------------------------------------------
import json as _json
@router.get('/profile/world-config')
@router.get('/world-config')
async def get_world_config(user=Depends(get_current_user)):
with db() as conn:
row = conn.execute("SELECT world_config FROM users WHERE id=?", (user['id'],)).fetchone()
@ -132,7 +132,7 @@ async def get_world_config(user=Depends(get_current_user)):
class WorldConfigIn(BaseModel):
config: dict
@router.put('/profile/world-config')
@router.put('/world-config')
async def put_world_config(body: WorldConfigIn, user=Depends(get_current_user)):
with db() as conn:
conn.execute("UPDATE users SET world_config=? WHERE id=?",

View file

@ -93,9 +93,9 @@
</script>
<!-- CSS: Reihenfolge ist wichtig — ?v= zwingt Browser zur Neuladung -->
<link rel="stylesheet" href="/css/design-system.css?v=658">
<link rel="stylesheet" href="/css/layout.css?v=658">
<link rel="stylesheet" href="/css/components.css?v=658">
<link rel="stylesheet" href="/css/design-system.css?v=659">
<link rel="stylesheet" href="/css/layout.css?v=659">
<link rel="stylesheet" href="/css/components.css?v=659">
</head>
<body>
@ -562,7 +562,7 @@
<script src="/js/api.js?v=94"></script>
<script src="/js/ui.js?v=94"></script>
<script src="/js/app.js?v=94"></script>
<script src="/js/worlds.js?v=658"></script>
<script src="/js/worlds.js?v=659"></script>
<!-- Feature-Seiten werden lazy geladen -->

View file

@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung.
============================================================ */
const APP_VER = '658'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VER = '659'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VERSION = '1.3.0'; // ← semantische Version, wird bei make release gesetzt
const IS_STAGING = location.hostname === 'staging.banyaro.app';

View file

@ -3,7 +3,7 @@
Offline-Cache + Push Notifications + Tile-Cache
============================================================ */
const CACHE_VERSION = 'by-v658';
const CACHE_VERSION = 'by-v659';
const CACHE_STATIC = `${CACHE_VERSION}-static`;
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache