ROUTER_MODULE_GUIDE

Community

Fix RouterModule prefixing for nested modules.

Authormthang1801
Version1.0.0
Installs0

System Documentation

What problem does it solve?

When using RouterModule.register() to prefix routes, controllers inside nested imported modules are not recognized, leading to missing routes.

Core Features & Use Cases

  • Ensures controllers are declared in the module registered with RouterModule to enable correct route prefixing in nested module architectures.
  • Provides architectural guidance for library vs presentation modules and router configuration to fix route discovery issues.
  • Use cases include multi-package NestJS apps with dynamic modules and nested imports.

Quick Start

Configure your presentation module to register its controllers and wire it into RouterModule with the desired path prefix.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: ROUTER_MODULE_GUIDE
Download link: https://github.com/mthang1801/go-domain-driven-design/archive/main.zip#router-module-guide

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.