diff --git a/src/app.controller.ts b/src/app.controller.ts index a4a17519df05b0bf77b5cc8ce385e551d0bd95fc..cdf5e9527e95191ecf4180ed840ccb5f7670e839 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')