Skip to content

Commit

Permalink
Adding back validator on update
Browse files Browse the repository at this point in the history
  • Loading branch information
CaioQuirinoMedeiros committed Jul 4, 2019
1 parent a2f6168 commit 586e6bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion start/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Route.group(() => {

Route.resource('products', 'ProductController')
.apiOnly()
.validator(new Map([[['products.store'], ['Product']]]))
.validator(new Map([[['products.store', 'products.update'], ['Product']]]))

Route.resource('sizes', 'SizeController')
.apiOnly()
Expand Down

0 comments on commit 586e6bd

Please sign in to comment.