Use this file to discover all available pages before exploring further.
The Statistics API surfaces the authenticated user’s personal records (PRs) — the maximum weight ever lifted for every exercise they have trained. PR data is aggregated directly in SQL across all completed sets (completada = 1) and returned ordered by peso_maximo DESC. This endpoint powers the progress charts on the Blackterz frontend dashboard.
Returns the personal record — the maximum weight ever lifted — for every exercise the authenticated user has logged at least one completed set on. Only sets where sesion_series.completada = 1 are considered. Results are ordered by peso_maximo DESC.Auth required: Yes — Authorization: Bearer <token>The query joins four tables: sesiones_entrenamiento → sesion_ejercicios → sesion_series → ejercicios. It groups by exercise and aggregates with MAX(peso).
Poll this endpoint after every completed workout session to keep the frontend progress charts up to date.
Array of personal record objects. One entry per exercise where the user has at least one completed set. Empty array [] if the user has no workout history.
Verifies that the API server is running and that the MySQL database connection is healthy. Executes a lightweight SELECT 1 query against the pool. No authentication required.Auth required: None
"conectada" — the SELECT 1 completed successfully.
{ "status": "ok", "db": "conectada"}
When the database connection throws an error, the health route calls next(error) and the global error handler in server.js responds with a generic 500.