1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-31 06:18:07 +00:00
_/frourio/server/validators/index.ts

15 lines
220 B
TypeScript

import { MinLength, IsString } from 'class-validator'
export class LoginBody {
@MinLength(2)
id: string
@MinLength(4)
pass: string
}
export class TokenHeader {
@IsString()
@MinLength(10)
token: string
}