Matching on Express Request Query Values

Hi, I want to use Match to try and Match on query values in an express request. I'm just struggling to visualize how to do this.

My thought is something like

Match<{request: { query: string } }>


But realistically I want to match on the actual value of the query so if a request is like /routename?name=value and I want to do different things when the value of name is something.

Its probably not as complicated as i'm making it seem but just not 100% sure how this would be done
Was this page helpful?