Replaced legacy route-validators.ts with a unified route-validator.ts that provides a class-based RouteValidator plus the previous functional API (isValidPort, isValidDomain, validateRouteMatch, validateRouteAction, validateRouteConfig, validateRoutes, hasRequiredPropertiesForAction, assertValidRoute) for backwards compatibility. Updated utils exports and all imports/tests to reference the new module. Also switched static file loading in certificate manager to use SmartFileFactory.nodeFs(), and added @push.rocks/smartserve to devDependencies.
23 lines
666 B
TypeScript
23 lines
666 B
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 route configurations
|
|
export * from './route-helpers.js';
|
|
|
|
// Export route validator (class-based and functional API)
|
|
export * from './route-validator.js';
|
|
|
|
// Export route utilities for route operations
|
|
export * from './route-utils.js';
|
|
|
|
// Export additional functions from route-helpers that weren't already exported
|
|
export {
|
|
createApiGatewayRoute,
|
|
addRateLimiting,
|
|
addBasicAuth,
|
|
addJwtAuth
|
|
} from './route-helpers.js'; |