godcrm/backend/routes/v3/fitness/index.js
GOD CRM Release f89e074dd1
Some checks failed
CI / Lint / Typecheck / Test / Build (push) Has been cancelled
CI / PostgreSQL Integration Tests (push) Has been cancelled
GOD CRM — public scrubbed snapshot
Governed substrate for autonomous agents: scoped identity (passports),
audited actions, MCP workspace. Infra IPs and secrets redacted for public release.
2026-08-10 04:01:45 +03:00

53 lines
1.2 KiB
JavaScript

/**
* @swagger
* components:
* schemas:
* Workout:
* type: object
* properties:
* id:
* type: integer
* space_id:
* type: integer
* title:
* type: string
* started_at:
* type: string
* format: date-time
* ended_at:
* type: string
* format: date-time
* WorkoutSet:
* type: object
* properties:
* id:
* type: integer
* workout_id:
* type: integer
* exercise_name:
* type: string
* reps:
* type: integer
* weight:
* type: number
*/
// API v3: Fitness Routes — thin router that imports all controllers
import express from 'express';
import workoutController from './workoutController.js';
import setExerciseController from './setExerciseController.js';
import analyticsController from './analyticsController.js';
const router = express.Router();
// 1. Workouts CRUD
router.use(workoutController);
// 2. Sets CRUD + exercises catalog + CSV import
router.use(setExerciseController);
// 3. Analytics endpoints
router.use(analyticsController);
export default router;