Is it possible to make something like this?


#1
Route.resource('users','UserController')
  .validator([['users.store','User/Store'],['users.update','User/Update']])
  .middleware('auth:store,update,delete')

instead of writing

Route.resource('users', 'UserController')
  .validator([['users.store', 'User/Store'], ['users.update', 'User/Update']])
  .middleware(new Map([[['store', 'update', 'destroy'], ['auth']]]))