48 lines
807 B
TypeScript
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';
|