Hozifa Elgharbawy commited on
Commit
b499f38
·
1 Parent(s): bb89f60
src/modules/users/modules/meal-plans/controller/meal-plans.controller.ts CHANGED
@@ -23,7 +23,6 @@ export class UsersMealPlansController extends BaseController {
23
 
24
  setRoutes(): void {
25
  this.router.get("/", asyncHandler(this.list));
26
- this.router.get("/ss", asyncHandler(this.ss));
27
  }
28
 
29
  @SwaggerGet()
@@ -49,27 +48,4 @@ export class UsersMealPlansController extends BaseController {
49
  res
50
  );
51
  };
52
-
53
- @SwaggerGet("/ss")
54
- ss = async (req: Request, res: Response) => {
55
- let pMealPlan = await this.mealPlansService.createModelMealPlan({
56
- id: "664a4b170da4e428849859a0",
57
- name: "User 0",
58
- email: "[email protected]",
59
- image: "https://placehold.co/300x400",
60
- role: "user" as any,
61
- gender: "male" as any,
62
- dob: new Date("1990-01-31T22:00:00.000+00:00"),
63
- height: 170,
64
- weight: 70,
65
- fitness_level: "beginner" as any,
66
- });
67
-
68
- return JsonResponse.success(
69
- {
70
- data: { pMealPlan: pMealPlan},
71
- },
72
- res
73
- );
74
- };
75
  }
 
23
 
24
  setRoutes(): void {
25
  this.router.get("/", asyncHandler(this.list));
 
26
  }
27
 
28
  @SwaggerGet()
 
48
  res
49
  );
50
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  }