All the time i see that we are using custom sql validation in many api
controllers where params there are sql value like (orderBy, sortBy and
etc.) and i have suggestion, if we want to continue use it, if remove all
sqlValidation from controllers and add interceptor which will be fetch from
URL all this params and validate there. What will have benefits in
this way? - (Just single responsibility), We'll have 1 class where we can
handle all their values without injecting the SqlValidation component to
each api controllers!

Reply via email to