Files
smartserve/ts/decorators/index.ts
2025-11-29 15:24:00 +00:00

48 lines
807 B
TypeScript

// Type exports
export type {
IControllerMetadata,
IRouteMetadata,
IRegisteredController,
ICompiledRoute,
} from './decorators.types.js';
// Route decorator
export { Route } from './decorators.route.js';
// HTTP method decorators
export {
Get,
Post,
Put,
Delete,
Patch,
Head,
Options,
All,
} from './decorators.methods.js';
// Interceptor decorators
export {
Guard,
Transform,
Intercept,
// Utility guards
hasHeader,
hasBearerToken,
rateLimit,
// Utility transforms
wrapSuccess,
addTimestamp,
} from './decorators.interceptors.js';
// Registry
export { ControllerRegistry } from './decorators.registry.js';
// Metadata utilities
export {
getControllerMetadata,
getMetadataFromInstance,
normalizePath,
combinePaths,
} from './decorators.metadata.js';