Skip to main content
Glama
index.ts1.21 kB
/** * REST API Middleware * * Exports all middleware components for the REST API server. * * Requirements: 15.3, 15.4, 15.5, 17.1, 18.1, 18.2 */ // CORS middleware export { createCorsMiddleware, parseCorsOrigins, type CorsConfig } from "./cors.js"; // Rate limiting middleware export { createRateLimitMiddleware, createRateLimiterInstance, type RateLimitMiddlewareConfig, } from "./rate-limit.js"; // Error handling middleware export { ApiError, ConflictError, ForbiddenError, NotFoundError, UnauthorizedError, ValidationApiError, asyncHandler, errorHandler, formatZodErrors, notFoundHandler, } from "./error-handler.js"; // Performance monitoring middleware - Requirements: 17.1 export { DEFAULT_PERFORMANCE_CONFIG, clearPerformanceMetrics, createPerformanceMiddleware, getPerformanceStats, getRecentMetrics, type PathStats, type PerformanceConfig, type PerformanceStats, type RequestMetrics, } from "./performance.js"; // Response caching middleware - Requirements: 17.1 export { DEFAULT_RESPONSE_CACHE_CONFIG, clearResponseCache, createResponseCacheMiddleware, getResponseCacheMetrics, type ResponseCacheConfig, } from "./response-cache.js";

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/keyurgolani/ThoughtMcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server