DT
Size: a a a
DT
K
MM
K
DT
NT
func OrderStore(request inter.Request) inter.Response {
app := request.App()
// Validate JSON content from the request body
failures := val.Validate(app, request.Content(),
// ...
)
if len(failures) > 0 {
app.Log("slack").Notice("Incorrect order given")
return outcome.Json(failures)
}
// (...)
// Return the response with the saved orders
return outcome.Json(orders)
}
DT
K
DT
K
DT
K
K
MM
КГ
K
MM
КГ
КГ
AL