title: How to add a route prefix to specific modules using NestJS?
body: <p>I want to add routing prefixes at the module level and/or have complex global routing prefix logic in general.</p>
  <p>I know I can use the undocumented function <code>NestApplication.setGlobalPrefix</code> to set a single global prefix:</p>
  <pre><code>// main.ts
  app.setGlobalPrefix(version);
  </code></pre>
  <p>However, I want to set prefixes at the module level in this case.</p>
  <p>It appears I could achieve this by setting my desired prefix into the decorators at the controller level:</p>
  <pre><code>//controler.ts
  @Get('/PREFIX/health')
  async getHealth() {
  
    // TODO: implement
    return {};
  }
  </code></pre>
  <p>But this seems fairly hacky and error-prone. Surely there is a better way?</p>