Skip to content

Implement a middleware function to validate query params #1

@rahuldahal

Description

@rahuldahal

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]

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions