The main endpoint for the API
Configuration options
Readonly
endpointsA map containing all endpoints of this API
Bind the API to a different IP Address
Readonly
mainthe main endpoint for this API
Readonly
middlewaresA Map containing all used middlewares for this API
Readonly
parametersA Map containing all parameters checker functions for this API
The API Server PORT. Default: 3000
Adds an endpoint to the API with improved error handling
Optional
middlewares: MiddleWareCallback[]Legacy method for backward compatibility
Legacy method for backward compatibility
Adds multiple methods to a single endpoint with improved type safety
Legacy method for backward compatibility
Adds a parameter checker with improved validation
Legacy method for backward compatibility
Force stops the server immediately (not recommended for production)
Gets current connection count
Gets the Express app instance for advanced usage
Gets all registered endpoints
Gets the Express router instance
Gets server information
Starts the express server with improved configuration
Optional
legacyConfig: { useDefaultMiddlewares: string }Gracefully stops the server
Initializes the APIController Class