If you want a route to match only when a specific query string is present, which type of route constraint can you use?

  • Regex
  • Range
  • Required
  • Bool
To match a route only when a specific query string is present, you can use the "Required" route constraint. This constraint ensures that the specified query parameter is included in the request, making the route match only when the query string contains that parameter.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *