Sanitize on get Route


Hello guys,
I was trying to use a sanitize on a get request but looking on MiddlewareValidator I saw this:

    const data =
    const sanitizedData = this.Validator.sanitize(data, validatorInstance.sanitizationRules)

And making more more research I get this issue on git.

So my question is, how can make a Validator with sanitize data on a get request route.



I do see query string getting sanitized too


Yep, you are right. I had seen the wrong version. Sorry about that, and Thanks!