core icon indicating copy to clipboard operation
core copied to clipboard

Route validator can work on V5 ?

Open venki0004 opened this issue 5 years ago • 1 comments

Package version

V5

Node.js and npm version

Nodejs 14.15,npm 6.4

Sample Code (to reproduce the issue)

I want to Validate request in Router Level like Route.resource('templates','TemplateController').validator('templateRequest');

but its throws error Property 'validator' does not exist on type 'RouteResourceContract'.ts

venki0004 avatar Jun 20 '21 09:06 venki0004

I don't the docs anywhere mentions that Route.resource().validator is a method

thetutlage avatar Jun 20 '21 10:06 thetutlage