Просмотр исходного кода

feat(backend): enhance weight API with DTO validation, stats service and middlewares

17846405080 1 месяц назад
Родитель
Сommit
6ea2b2993c

+ 2 - 0
campus_health_app/backend/src/controllers/WeightController.ts

@@ -381,6 +381,8 @@ export class WeightController {
 
 
 
+
+
 
 
 

+ 2 - 0
campus_health_app/backend/src/dto/tag.dto.ts

@@ -32,6 +32,8 @@ export class CreateTagDto {
 
 
 
+
+
 
 
 

+ 2 - 0
campus_health_app/backend/src/dto/weight-goal.dto.ts

@@ -57,6 +57,8 @@ export class UpdateWeightGoalDto {
 
 
 
+
+
 
 
 

+ 2 - 0
campus_health_app/backend/src/dto/weight-record.dto.ts

@@ -128,6 +128,8 @@ export class WeightRecordQueryDto {
 
 
 
+
+
 
 
 

+ 2 - 0
campus_health_app/backend/src/middlewares/auth.middleware.ts

@@ -47,6 +47,8 @@ declare global {
 
 
 
+
+
 
 
 

+ 2 - 0
campus_health_app/backend/src/middlewares/logger.middleware.ts

@@ -40,6 +40,8 @@ export const loggerMiddleware = (
 
 
 
+
+
 
 
 

+ 2 - 0
campus_health_app/backend/src/routes/weight.routes.ts

@@ -73,6 +73,8 @@ export default router;
 
 
 
+
+
 
 
 

+ 2 - 0
campus_health_app/backend/src/server.ts

@@ -133,6 +133,8 @@ export default app;
 
 
 
+
+
 
 
 

+ 2 - 0
campus_health_app/backend/src/services/StatsService.ts

@@ -115,6 +115,8 @@ export class StatsService {
 
 
 
+
+
 
 
 

+ 2 - 0
campus_health_app/backend/src/services/WeightGoalService.ts

@@ -142,6 +142,8 @@ export class WeightGoalService {
 
 
 
+
+