63 lines
1.4 KiB
TypeScript
63 lines
1.4 KiB
TypeScript
|
|
/**
|
||
|
|
* Route Helper Functions
|
||
|
|
*
|
||
|
|
* This module provides utility functions for creating route configurations for common scenarios.
|
||
|
|
* These functions aim to simplify the creation of route configurations for typical use cases.
|
||
|
|
*
|
||
|
|
* This barrel file re-exports all helper functions for backwards compatibility.
|
||
|
|
*/
|
||
|
|
|
||
|
|
// HTTP helpers
|
||
|
|
export { createHttpRoute } from './http-helpers.js';
|
||
|
|
|
||
|
|
// HTTPS helpers
|
||
|
|
export {
|
||
|
|
createHttpsTerminateRoute,
|
||
|
|
createHttpToHttpsRedirect,
|
||
|
|
createHttpsPassthroughRoute,
|
||
|
|
createCompleteHttpsServer
|
||
|
|
} from './https-helpers.js';
|
||
|
|
|
||
|
|
// WebSocket helpers
|
||
|
|
export { createWebSocketRoute } from './websocket-helpers.js';
|
||
|
|
|
||
|
|
// Load balancer helpers
|
||
|
|
export {
|
||
|
|
createLoadBalancerRoute,
|
||
|
|
createSmartLoadBalancer
|
||
|
|
} from './load-balancer-helpers.js';
|
||
|
|
|
||
|
|
// NFTables helpers
|
||
|
|
export {
|
||
|
|
createNfTablesRoute,
|
||
|
|
createNfTablesTerminateRoute,
|
||
|
|
createCompleteNfTablesHttpsServer
|
||
|
|
} from './nftables-helpers.js';
|
||
|
|
|
||
|
|
// Dynamic routing helpers
|
||
|
|
export {
|
||
|
|
createPortOffset,
|
||
|
|
createPortMappingRoute,
|
||
|
|
createOffsetPortMappingRoute,
|
||
|
|
createDynamicRoute
|
||
|
|
} from './dynamic-helpers.js';
|
||
|
|
|
||
|
|
// API helpers
|
||
|
|
export {
|
||
|
|
createApiRoute,
|
||
|
|
createApiGatewayRoute
|
||
|
|
} from './api-helpers.js';
|
||
|
|
|
||
|
|
// Security helpers
|
||
|
|
export {
|
||
|
|
addRateLimiting,
|
||
|
|
addBasicAuth,
|
||
|
|
addJwtAuth
|
||
|
|
} from './security-helpers.js';
|
||
|
|
|
||
|
|
// Socket handlers
|
||
|
|
export {
|
||
|
|
SocketHandlers,
|
||
|
|
createSocketHandlerRoute
|
||
|
|
} from './socket-handlers.js';
|