Fix: Welten-Config Endpoint-Pfad doppeltes /profile/ entfernt — /api/profile/world-config korrekt (SW by-v659)
This commit is contained in:
parent
eca8d1455d
commit
71a13d695e
4 changed files with 8 additions and 8 deletions
|
|
@ -121,7 +121,7 @@ async def upload_avatar(
|
||||||
# ----------------------------------------------------------
|
# ----------------------------------------------------------
|
||||||
import json as _json
|
import json as _json
|
||||||
|
|
||||||
@router.get('/profile/world-config')
|
@router.get('/world-config')
|
||||||
async def get_world_config(user=Depends(get_current_user)):
|
async def get_world_config(user=Depends(get_current_user)):
|
||||||
with db() as conn:
|
with db() as conn:
|
||||||
row = conn.execute("SELECT world_config FROM users WHERE id=?", (user['id'],)).fetchone()
|
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):
|
class WorldConfigIn(BaseModel):
|
||||||
config: dict
|
config: dict
|
||||||
|
|
||||||
@router.put('/profile/world-config')
|
@router.put('/world-config')
|
||||||
async def put_world_config(body: WorldConfigIn, user=Depends(get_current_user)):
|
async def put_world_config(body: WorldConfigIn, user=Depends(get_current_user)):
|
||||||
with db() as conn:
|
with db() as conn:
|
||||||
conn.execute("UPDATE users SET world_config=? WHERE id=?",
|
conn.execute("UPDATE users SET world_config=? WHERE id=?",
|
||||||
|
|
|
||||||
|
|
@ -93,9 +93,9 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<!-- CSS: Reihenfolge ist wichtig — ?v= zwingt Browser zur Neuladung -->
|
<!-- CSS: Reihenfolge ist wichtig — ?v= zwingt Browser zur Neuladung -->
|
||||||
<link rel="stylesheet" href="/css/design-system.css?v=658">
|
<link rel="stylesheet" href="/css/design-system.css?v=659">
|
||||||
<link rel="stylesheet" href="/css/layout.css?v=658">
|
<link rel="stylesheet" href="/css/layout.css?v=659">
|
||||||
<link rel="stylesheet" href="/css/components.css?v=658">
|
<link rel="stylesheet" href="/css/components.css?v=659">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
|
|
@ -562,7 +562,7 @@
|
||||||
<script src="/js/api.js?v=94"></script>
|
<script src="/js/api.js?v=94"></script>
|
||||||
<script src="/js/ui.js?v=94"></script>
|
<script src="/js/ui.js?v=94"></script>
|
||||||
<script src="/js/app.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 -->
|
<!-- Feature-Seiten werden lazy geladen -->
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
Router, State-Management, Navigation, Initialisierung.
|
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 APP_VERSION = '1.3.0'; // ← semantische Version, wird bei make release gesetzt
|
||||||
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
Offline-Cache + Push Notifications + Tile-Cache
|
Offline-Cache + Push Notifications + Tile-Cache
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|
||||||
const CACHE_VERSION = 'by-v658';
|
const CACHE_VERSION = 'by-v659';
|
||||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||||
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
||||||
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache
|
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue