validate inputs
This commit is contained in:
+3
-1
@@ -13,6 +13,7 @@ import (
|
||||
|
||||
"github.com/aws/aws-sdk-go-v2/config"
|
||||
"github.com/aws/aws-sdk-go-v2/service/sqs"
|
||||
"github.com/go-playground/validator/v10"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@@ -34,9 +35,10 @@ func main() {
|
||||
|
||||
conn := database.GetDBConn(ctx)
|
||||
db := repository.New(conn)
|
||||
valid := validator.New()
|
||||
|
||||
controllers := queue.Controllers{
|
||||
Document: *queue.NewDocumentController(*document.New(db)),
|
||||
Document: *queue.NewDocumentController(*document.New(db), valid),
|
||||
}
|
||||
|
||||
config := queue.Queue{
|
||||
|
||||
Reference in New Issue
Block a user