export use cases from index

This commit is contained in:
2023-06-17 23:29:30 +02:00
parent 36e54cf56f
commit 0794238f0d
3 changed files with 18 additions and 10 deletions

View File

@@ -15,13 +15,15 @@ import { DecksService } from './decks.service'
import { CreateDeckDto } from './dto/create-deck.dto'
import { UpdateDeckDto } from './dto/update-deck.dto'
import { CommandBus } from '@nestjs/cqrs'
import { CreateDeckCommand } from './use-cases'
import {
CreateDeckCommand,
DeleteDeckByIdCommand,
GetAllDecksCommand,
GetDeckByIdCommand,
UpdateDeckCommand,
} from './use-cases'
import { JwtAuthGuard } from '../auth/guards/jwt-auth.guard'
import { GetAllDecksCommand } from './use-cases/get-all-decks-use-case'
import { GetAllDecksDto } from './dto/get-all-decks.dto'
import { GetDeckByIdCommand } from './use-cases/get-deck-by-id-use-case'
import { DeleteDeckByIdCommand } from './use-cases/delete-deck-by-id-use-case'
import { UpdateDeckCommand } from './use-cases/update-deck-use-case'
@Controller('decks')
export class DecksController {