Sprint 14: User-Profil-System (bio, wohnort, erfahrung, avatar)
- DB-Migrationen: 7 neue Spalten in users (bio, wohnort, erfahrung, social_link, profil_sichtbarkeit, avatar_url, email_verified) - GET /api/auth/me gibt nun alle Profil-Felder + created_at zurück - PATCH /api/profile: Profil-Felder aktualisieren (mit Validierung) - POST /api/profile/avatar: Avatar-Upload (PIL JPEG-Konvertierung, HEIC-Support) - Router in main.py registriert
This commit is contained in:
parent
41c4ba3dd6
commit
9bd8701a1d
4 changed files with 134 additions and 7 deletions
|
|
@ -72,6 +72,7 @@ from routes.friends import router as friends_router
|
|||
from routes.chat import router as chat_router
|
||||
from routes.admin import router as admin_router
|
||||
from routes.webcal import router as webcal_router
|
||||
from routes.profile import router as profile_router
|
||||
|
||||
app.include_router(auth_router, prefix="/api/auth", tags=["Auth"])
|
||||
app.include_router(dogs_router, prefix="/api/dogs", tags=["Hunde"])
|
||||
|
|
@ -96,6 +97,7 @@ app.include_router(friends_router, prefix="/api/friends", tags=["Freunde"]
|
|||
app.include_router(chat_router, prefix="/api/chat", tags=["Chat"])
|
||||
app.include_router(admin_router, prefix="/api/admin", tags=["Admin"])
|
||||
app.include_router(webcal_router, prefix="/api/webcal", tags=["WebCal"])
|
||||
app.include_router(profile_router, prefix="/api/profile", tags=["Profil"])
|
||||
|
||||
|
||||
# ------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue