Atlassian-connect-express - get endpoint with parameters

Hello,

We are building an application for Confluence Cloud based on atlassian-connect-express NPM package. We have created several endpoints in routes\index.js and now we would like to create a GET endpoint that would be called from client side of our application and we would like to pass some parameters in the URL.

We encountered a problem with that because our parameters are removed from that URL and what can be found in the request query object are context parameters like spaceKey, xdm_e, lic, jwt, etc.

Is it possible to create such a GET endpoint and pass parameters in the URL? If not, is there any other way to pass custom parameters to a GET endpoint, or maybe the only way to do it is to transform it into a POST endpoint?

Thank you in advance for your support!

Best regards,
Bartłomiej