diff --git a/back/src/scores/scores.controller.ts b/back/src/scores/scores.controller.ts index 482de92..fcfa98f 100644 --- a/back/src/scores/scores.controller.ts +++ b/back/src/scores/scores.controller.ts @@ -1,16 +1,6 @@ import { - BadRequestException, - Body, Controller, Get, - HttpCode, - InternalServerErrorException, - NotFoundException, - Param, - ParseIntPipe, - Post, - Request, - UseGuards, } from '@nestjs/common'; import { ApiTags } from '@nestjs/swagger'; import { ScoresService } from './scores.service'; @@ -18,6 +8,12 @@ import { ScoresService } from './scores.service'; @ApiTags('scores') @Controller('scores') export class ScoresController { - constructor(private readonly searchService: ScoresService) {} + constructor(private readonly scoresService: ScoresService) {} + + @ApiOkResponse({ description: 'Successfully sent the Top 3 players'}) + @Get('scores/top/3') + getTopThree(): Promise { + return await this.scoresService.topThree(); + } } \ No newline at end of file diff --git a/back/src/scores/scores.service.ts b/back/src/scores/scores.service.ts index f54ccfe..a703263 100644 --- a/back/src/scores/scores.service.ts +++ b/back/src/scores/scores.service.ts @@ -6,4 +6,9 @@ export class ScoresService { constructor( private prisma: PrismaService, ) {} + + async topThree(): Promise { + // return this.prisma. + return []; + } } \ No newline at end of file