create-routes
CommunityWire controllers and middleware into HTTP routes.
Authormadooei
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Wiring controllers and middleware to HTTP endpoints is error-prone and duplicative across services. This guide explains how a factory-based routing pattern helps you compose modular, testable API layers with clear dependency injection boundaries.
Core Features & Use Cases
- Factory function pattern for dependency injection enabling mock testing and easy swapping of implementations
- Global vs per-route middleware wiring for consistent security, validation, and logging
- Simple mounting in app.ts with typed routes that preserve a clean separation of concerns
Quick Start
Call the factory function with concrete {Entity}Controller and your chosen middleware to mount routes.
Dependency Matrix
Required Modules
None requiredComponents
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: create-routes Download link: https://github.com/madooei/backend-template/archive/main.zip#create-routes Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.