mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-18 05:09:29 +00:00
refactor imports/exports
This commit is contained in:
@@ -11,10 +11,10 @@ import {
|
||||
UseInterceptors,
|
||||
} from '@nestjs/common'
|
||||
import { CardsService } from './cards.service'
|
||||
import { UpdateCardDto } from './dto/update-card.dto'
|
||||
import { UpdateCardDto } from './dto'
|
||||
import { CommandBus } from '@nestjs/cqrs'
|
||||
import { DeleteCardByIdCommand, GetDeckByIdCommand, UpdateCardCommand } from './use-cases'
|
||||
import { JwtAuthGuard } from '../auth/guards/jwt-auth.guard'
|
||||
import { JwtAuthGuard } from '../auth/guards'
|
||||
import { FileFieldsInterceptor } from '@nestjs/platform-express'
|
||||
|
||||
@Controller('cards')
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import { Length } from 'class-validator'
|
||||
import { PaginationDto } from '../../../infrastructure/common/pagination/pagination.dto'
|
||||
import { IsOptionalOrEmptyString } from '../../../infrastructure/decorators/is-optional-or-empty-string'
|
||||
import { IsOrderBy } from '../../../infrastructure/decorators/is-order-by-constraint'
|
||||
import { IsOptionalOrEmptyString, IsOrderBy } from '../../../infrastructure/decorators'
|
||||
|
||||
export class GetAllCardsInDeckDto extends PaginationDto {
|
||||
@IsOptionalOrEmptyString()
|
||||
|
||||
3
src/modules/cards/dto/index.ts
Normal file
3
src/modules/cards/dto/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export * from './create-card.dto'
|
||||
export * from './get-all-cards.dto'
|
||||
export * from './update-card.dto'
|
||||
@@ -1,3 +1,3 @@
|
||||
export * from './get-deck-by-id-use-case'
|
||||
export * from './delete-card-by-id-use-case'
|
||||
export * from './get-deck-by-id-use-case'
|
||||
export * from './update-card-use-case'
|
||||
|
||||
Reference in New Issue
Block a user