mirror of
https://github.com/ershisan99/flashcards-api.git
synced 2025-12-18 20:59:28 +00:00
add crete/get cards
This commit is contained in:
9
src/modules/cards/dto/create-card.dto.ts
Normal file
9
src/modules/cards/dto/create-card.dto.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { Length } from 'class-validator'
|
||||
|
||||
export class CreateCardDto {
|
||||
@Length(3, 500)
|
||||
question: string
|
||||
|
||||
@Length(3, 500)
|
||||
answer: string
|
||||
}
|
||||
Reference in New Issue
Block a user