Governed substrate for autonomous agents: scoped identity (passports), audited actions, MCP workspace. Infra IPs and secrets redacted for public release.
52 lines
1.2 KiB
JavaScript
52 lines
1.2 KiB
JavaScript
/**
|
|
* @swagger
|
|
* components:
|
|
* schemas:
|
|
* WellnessProfile:
|
|
* type: object
|
|
* properties:
|
|
* id:
|
|
* type: integer
|
|
* space_id:
|
|
* type: integer
|
|
* birth_date:
|
|
* type: string
|
|
* format: date
|
|
* gender:
|
|
* type: string
|
|
* enum: [male, female, other]
|
|
* height_cm:
|
|
* type: number
|
|
* activity_level:
|
|
* type: string
|
|
* VitalRecord:
|
|
* type: object
|
|
* properties:
|
|
* id:
|
|
* type: integer
|
|
* profile_id:
|
|
* type: integer
|
|
* vital_type:
|
|
* type: string
|
|
* value:
|
|
* type: number
|
|
* recorded_at:
|
|
* type: string
|
|
* format: date-time
|
|
*/
|
|
|
|
// API v3: Wellness Routes — thin router that imports all controllers
|
|
|
|
import express from 'express';
|
|
import profileVitalsController from './profileVitalsController.js';
|
|
import gamificationController from './gamificationController.js';
|
|
|
|
const router = express.Router();
|
|
|
|
// 1. Profile + vitals
|
|
router.use(profileVitalsController);
|
|
|
|
// 2. Gamification, streaks, dashboard
|
|
router.use(gamificationController);
|
|
|
|
export default router;
|