back scores handling
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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';
|
||||
|
||||
@ApiTags('scores')
|
||||
@Controller('scores')
|
||||
export class ScoresController {
|
||||
constructor(private readonly searchService: ScoresService) {}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { ScoresService } from './scores.service';
|
||||
import { ScoresController } from './scores.controller';
|
||||
import { PrismaModule } from 'src/prisma/prisma.module';
|
||||
|
||||
@Module({
|
||||
imports: [PrismaModule],
|
||||
controllers: [ScoresController],
|
||||
providers: [ScoresService],
|
||||
})
|
||||
export class ScoresModule {}
|
||||
@@ -0,0 +1,9 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import { PrismaService } from 'src/prisma/prisma.service';
|
||||
|
||||
@Injectable()
|
||||
export class ScoresService {
|
||||
constructor(
|
||||
private prisma: PrismaService,
|
||||
) {}
|
||||
}
|
||||
Reference in New Issue
Block a user