Template base para proyectos SaaS multi-tenant. Estructura inicial: - apps/backend (NestJS API) - apps/frontend (React/Vite) - apps/database (PostgreSQL DDL) - docs/ (Documentación) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
25 lines
863 B
TypeScript
25 lines
863 B
TypeScript
import { Type } from '../type.interface';
|
|
import { RouteInfo } from './middleware-configuration.interface';
|
|
import { MiddlewareConsumer } from './middleware-consumer.interface';
|
|
/**
|
|
* @publicApi
|
|
*/
|
|
export interface MiddlewareConfigProxy {
|
|
/**
|
|
* Routes to exclude from the current middleware.
|
|
*
|
|
* @param {(string | RouteInfo)[]} routes
|
|
* @returns {MiddlewareConfigProxy}
|
|
*/
|
|
exclude(...routes: (string | RouteInfo)[]): MiddlewareConfigProxy;
|
|
/**
|
|
* Attaches either routes or controllers to the current middleware.
|
|
* If you pass a controller class, Nest will attach the current middleware to every path
|
|
* defined within it.
|
|
*
|
|
* @param {(string | Type | RouteInfo)[]} routes
|
|
* @returns {MiddlewareConsumer}
|
|
*/
|
|
forRoutes(...routes: (string | Type<any> | RouteInfo)[]): MiddlewareConsumer;
|
|
}
|