Implements Hunt basic create and get, and adds field validation to controllers
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
package net.halfbinary.scavengerhuntapi.model.request
|
||||
|
||||
import jakarta.validation.constraints.NotBlank
|
||||
|
||||
data class LoginRequest(
|
||||
@field:NotBlank(message = "Email cannot be blank")
|
||||
val email: String,
|
||||
@field:NotBlank(message = "Password cannot be blank")
|
||||
val password: String
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user