From 5ddebd5da22d82d40ca4e498ad18f0f6ba8327dc Mon Sep 17 00:00:00 2001 From: Pawan k <128481755+kumarpawantarento@users.noreply.github.com> Date: Fri, 21 Apr 2023 19:26:34 +0530 Subject: [PATCH] Update app.controller.ts --- src/app.controller.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app.controller.ts b/src/app.controller.ts index a4a1751..cdf5e95 100644 --- a/src/app.controller.ts +++ b/src/app.controller.ts @@ -34,9 +34,9 @@ export class AppController { return this.appService.getStudentById(params.id); } - @Get('student/:rollnumber') - getStudentByRollnumber(@Param() params) { - return this.appService.getStudentByRollnumber(params.rollnumber); + @Get('student/:rollnumber/:dob') + getStudentByRollnumberAndDOB(@Param() params) { + return this.appService.getStudentByRollnumber(params.rollnumber, params.dob); } @Get('tutor/:id') -- GitLab