You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could you think of a design pattern to validate all incoming parameters? Maybe some middleware that validates by type and could be added to each route applicable.
@trentgoing That would definitely clean up my controllers. I'll look into abstracting current code into middleware as well as adding future parameter checks as middleware.
When clients send Page and Count parameters, add the ability to check if the parameters sent are valid. If not, throw an error.
The text was updated successfully, but these errors were encountered: