Pages Query String

When using functions with Cloudflare pages is it possible to route index.html to “/” and index.js to “/?” or would I need to use something like “/q?” for the query string?

So I have to use “/q?” which would be okay if placeholders worked for query string Splats or Placeholders Parameters not work in _redirects file

Please fix this…