##This release introduces bug fixes and improvements to the custom API Gateway (similar to Ocelot), focusing on route configuration and method handling. Key updates include:
Fixed Route Duplication: Ensured that routes are only configured once, preventing unnecessary duplications.
GET and POST Method Fixes: Corrected the route method registration, ensuring that both GET and POST methods are correctly handled. Previously, only the POST method worked for certain routes; this has been resolved, and now both GET and POST methods are properly registered for their respective paths.
Logging Improvements: Added logging for better tracing of method registrations and routing logic.
Configuration Refinements: Ensured that the route configuration in the YAML file is properly parsed and applied.
New Features:
GET/POST Method Handling: Both GET and POST methods are now correctly routed for each defined path.
Configurable HTTP Methods: Support for additional HTTP methods (PUT, DELETE, PATCH, HEAD, TRACE) has been streamlined and properly configured in the configure_route function.
Bug Fixes:
Route Duplication Issue: Resolved an issue where routes were being registered multiple times, causing potential conflicts.
Route Not Found for GET Requests: Fixed a bug where GET requests were not being registered for certain paths.
Configuration Changes:
YAML File Update: Ensure that the methods field in config.yml includes all required HTTP methods (POST, GET, etc.) for the routes to function as intended.
Performance and Stability:
Improved Memory Management: Ensured that the route data is efficiently handled and memory allocation is optimized.
Service Stability: Improved overall stability when handling multiple HTTP methods for the same route.
How to Upgrade:
Pull the latest changes from the repository.
Update your config.yml to ensure both POST and GET methods (or any other methods you need) are defined for each route.
Restart your server using cargo run to apply the new configurations.
Known Issues:
No known issues in this release.