veza/veza-backend-api/internal/handlers
senke 3afc57dfbc [BE-API-021] be-api: Implement avatar upload endpoint
- Standardized UploadAvatar handler to use RespondSuccess/RespondWithAppError
- Replaced common.GetUserIDFromContext with GetUserIDUUID
- Handler accepts both :userId and :id parameters
- Added route: POST /users/:userId/avatar
- Handler validates user authentication and ownership
- Handler uses existing ImageService methods
- Handler updates avatar URL in database

Phase: PHASE-2
Priority: P1
Progress: 30/267 (11.2%)
2025-12-24 11:34:41 +01:00
..
analytics_handler.go stabilizing veza-backend-api: LAST REMEDIATION 2025-12-16 14:07:36 -05:00
api_flow_test.go stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
audit.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
auth.go [INT-003] integration: Fix auth/login response format mismatch 2025-12-23 01:44:54 +01:00
auth_handler_test.go.bak adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
avatar_handler.go [BE-API-021] be-api: Implement avatar upload endpoint 2025-12-24 11:34:41 +01:00
bitrate_handler.go stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
bitrate_handler_test.go stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
chat_handler.go [BE-API-006] be-api: Implement chat stats endpoint 2025-12-23 01:51:49 +01:00
chat_handler_test.go refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05:00
comment_handler.go [BE-API-013] be-api: Implement track comments endpoints 2025-12-24 11:19:05 +01:00
common.go stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
config_reload.go STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
csrf.go fix(MVP-006): Standardize environment variable names (VITE_API_BASE_URL → VITE_API_URL) 2025-12-22 22:56:37 +01:00
error_contract_test.go stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
error_response.go STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
health.go refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05:00
health_p1_test.go refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05:00
health_test.go refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05:00
hls_handler.go [BE-API-020] be-api: Implement HLS stream info endpoint 2025-12-24 11:32:50 +01:00
marketplace.go stabilizing veza-backend-api: P1 & P2 2025-12-16 13:34:08 -05:00
metrics.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
metrics_aggregated.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
metrics_aggregated_test.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
metrics_test.go.disabled fix(backend-tests): enable room_handler_test and resolve metric collisions 2025-12-06 12:53:15 +01:00
notification_handlers.go [BE-API-016] be-api: Implement notifications endpoints 2025-12-24 11:23:24 +01:00
oauth_handlers.go STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
password_reset_handler.go stabilizing veza-backend-api: P1 & P2 2025-12-16 13:34:08 -05:00
playback_analytics_handler.go stabilizing veza-backend-api: P1 & P2 2025-12-16 13:34:08 -05:00
playback_websocket_handler.go stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
playlist_collaboration_integration_test.go stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
playlist_error_helper.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
playlist_error_helper_test.go STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
playlist_export_handler.go STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
playlist_handler.go [BE-API-004] be-api: Implement playlist share link endpoint 2025-12-23 01:51:00 +01:00
playlist_handler_integration_test.go stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
playlist_handlers_test.go.bak adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
playlist_track_handler_integration_test.go stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
profile_handler.go [BE-API-018] be-api: Implement user block/unblock endpoints 2025-12-24 11:28:49 +01:00
profile_handler_integration_test.go [BE-API-002] api: Implement playlist collaborators endpoints 2025-12-23 01:41:43 +01:00
profile_handler_test.go.disabled fix(backend-tests): enable room_handler_test and resolve metric collisions 2025-12-06 12:53:15 +01:00
response.go STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
role_handler.go [BE-API-008] be-api: Implement user search endpoint 2025-12-23 10:42:26 +01:00
room_handler.go [BE-API-012] be-api: Implement conversation update endpoint 2025-12-23 10:51:18 +01:00
room_handler_test.go STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
search_handlers.go STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
session.go STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
settings_handler.go stabilizing veza-backend-api: phase 1 2025-12-16 11:23:49 -05:00
social.go stabilizing veza-backend-api: P1 & P2 2025-12-16 13:34:08 -05:00
status_handler.go STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00
system_metrics.go adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
system_metrics_test.go.disabled fix(backend-tests): enable room_handler_test and resolve metric collisions 2025-12-06 12:53:15 +01:00
track_handler_test.go.bak adding initial backend API (Go) 2025-12-03 20:29:37 +01:00
two_factor_handler.go [BE-API-002] api: Implement playlist collaborators endpoints 2025-12-23 01:41:43 +01:00
upload.go stabilizing veza-backend-api: P1 & P2 2025-12-16 13:34:08 -05:00
validation_test.go refonte: backend-api go first; phase 1 2025-12-12 21:34:34 -05:00
webhook_handlers.go STABILISATION: phase 3–5 – API contract, tests & chat-server hardening 2025-12-06 17:21:59 +01:00