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
Create a function in the [middleware] file to check if query params and strings exist or not. Also, check if they match the expected pattern.
Use Case
For example in these three c1, c2 and, c3 controllers, the validation is done in the controller themselves. The same validation is repeated three times
Proposed Solution
Create a middleware file here and check if query params and strings exist or not. Also, check if they match the expected pattern.
Feature Request Description
Create a function in the [middleware] file to check if query params and strings exist or not. Also, check if they match the expected pattern.
Use Case
For example in these three c1, c2 and, c3 controllers, the validation is done in the controller themselves. The same validation is repeated three times
Proposed Solution
Create a middleware file here and check if query params and strings exist or not. Also, check if they match the expected pattern.
Benefits
Makes the code DRY and have a Single Point of Truth
Current Workarounds (if applicable)
[Explain any existing workarounds or alternative approaches that users may currently use]
Additional Information
[Add any additional information or context that may be helpful for understanding the feature request]
The text was updated successfully, but these errors were encountered: