40 lines
1.2 KiB
TypeScript
40 lines
1.2 KiB
TypeScript
|
/**
|
||
|
* SmartProxy Route Utilities
|
||
|
*
|
||
|
* This file exports all route-related utilities for the SmartProxy module,
|
||
|
* including helpers, validators, utilities, and patterns for working with routes.
|
||
|
*/
|
||
|
|
||
|
// Export route helpers for creating routes
|
||
|
export * from './route-helpers.js';
|
||
|
|
||
|
// Export route validators for validating route configurations
|
||
|
export * from './route-validators.js';
|
||
|
|
||
|
// Export route utilities for route operations
|
||
|
export * from './route-utils.js';
|
||
|
|
||
|
// Export route patterns with renamed exports to avoid conflicts
|
||
|
import {
|
||
|
createWebSocketRoute as createWebSocketPatternRoute,
|
||
|
createLoadBalancerRoute as createLoadBalancerPatternRoute,
|
||
|
createApiGatewayRoute,
|
||
|
createStaticFileServerRoute,
|
||
|
addRateLimiting,
|
||
|
addBasicAuth,
|
||
|
addJwtAuth
|
||
|
} from './route-patterns.js';
|
||
|
|
||
|
export {
|
||
|
createWebSocketPatternRoute,
|
||
|
createLoadBalancerPatternRoute,
|
||
|
createApiGatewayRoute,
|
||
|
createStaticFileServerRoute,
|
||
|
addRateLimiting,
|
||
|
addBasicAuth,
|
||
|
addJwtAuth
|
||
|
};
|
||
|
|
||
|
// Export migration utilities for transitioning from domain-based to route-based configs
|
||
|
// Note: These will be removed in a future version once migration is complete
|
||
|
export * from './route-migration-utils.js';
|