diff --git a/back/src/album/album.controller.ts b/back/src/album/album.controller.ts index 0a88e75..70f0120 100644 --- a/back/src/album/album.controller.ts +++ b/back/src/album/album.controller.ts @@ -1,5 +1,4 @@ import { - BadRequestException, Body, ConflictException, Controller, diff --git a/back/src/artist/artist.controller.ts b/back/src/artist/artist.controller.ts index 589f476..67707e0 100644 --- a/back/src/artist/artist.controller.ts +++ b/back/src/artist/artist.controller.ts @@ -1,5 +1,4 @@ import { - BadRequestException, Body, ConflictException, Controller, @@ -14,7 +13,7 @@ import { Query, Req, StreamableFile, - UseGuards, + UseGuards, } from '@nestjs/common'; import { ApiOkResponsePlaginated, Plage } from 'src/models/plage'; import { CreateArtistDto } from './dto/create-artist.dto'; diff --git a/back/src/auth/auth.controller.ts b/back/src/auth/auth.controller.ts index e791d6a..4e613e7 100644 --- a/back/src/auth/auth.controller.ts +++ b/back/src/auth/auth.controller.ts @@ -32,11 +32,8 @@ import { ApiBearerAuth, ApiBody, ApiConflictResponse, - ApiCreatedResponse, - ApiNoContentResponse, ApiOkResponse, ApiOperation, - ApiResponse, ApiTags, ApiUnauthorizedResponse, } from '@nestjs/swagger'; diff --git a/back/src/search/search.controller.ts b/back/src/search/search.controller.ts index a6fad32..fa5f4db 100644 --- a/back/src/search/search.controller.ts +++ b/back/src/search/search.controller.ts @@ -1,14 +1,9 @@ import { - BadRequestException, - Body, Controller, Get, - HttpCode, InternalServerErrorException, NotFoundException, Param, - ParseIntPipe, - Post, Query, Request, UseGuards, @@ -16,13 +11,11 @@ import { import { ApiOkResponse, ApiOperation, - ApiParam, ApiTags, ApiUnauthorizedResponse, } from '@nestjs/swagger'; import { Artist, Genre, Song } from '@prisma/client'; import { JwtAuthGuard } from 'src/auth/jwt-auth.guard'; -import { SearchSongDto } from './dto/search-song.dto'; import { SearchService } from './search.service'; import { Song as _Song } from 'src/_gen/prisma-class/song'; import { Genre as _Genre } from 'src/_gen/prisma-class/genre'; diff --git a/back/src/search/search.service.ts b/back/src/search/search.service.ts index 5175831..c983018 100644 --- a/back/src/search/search.service.ts +++ b/back/src/search/search.service.ts @@ -1,5 +1,5 @@ import { Injectable } from '@nestjs/common'; -import { Album, Artist, Prisma, Song, Genre } from '@prisma/client'; +import { Artist, Prisma, Song, Genre } from '@prisma/client'; import { HistoryService } from 'src/history/history.service'; import { PrismaService } from 'src/prisma/prisma.service';