title: Is it possible to create two identical routes with a different param name using Fastify?
body: <p>In my application, I would like to have two routes that match the following paths</p>
  <pre><code>fastify.get('/thing/:id', async () =&gt; {})
  fastify.get('/thing/:name', async () =&gt; {})
  </code></pre>
  <p>I tried giving the ':id' path a regex, but Fastify still recognized them as duplicate routes.  Is it possible to accomplish this aside from running a regex in the handler to determine if it is an id or a name?</p>
  <p>EDIT: I failed to mention that I am familiar with the Fastify documentation. I was hoping to discover something that is not currently documented.</p>
  <p>A nice alternative would be if it were possible to declare alternate params at the same path level and to have the schema determine which param applies.  For example:
  <code>'/thing/:id|:name'</code> and then have the params schema or be the determining factor, or separate regexs in the route like, <code>'/thing/:id()|:name()'</code>.</p>
  <p>Anyway, would be cool.</p>