initial
This commit is contained in:
47
ts/decorators/index.ts
Normal file
47
ts/decorators/index.ts
Normal file
@@ -0,0 +1,47 @@
|
||||
// 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';
|
||||
Reference in New Issue
Block a user