Tags: alphayax/microservices-demo
Tags
Update logging routes in services
The commit updates the routes logged by the gin.DefaultWriter in the article-service and the cart-service. Previously, logs were generated for all routes except for the "/healthz" route. Now, logs will be generated for all routes except both the root ("/") and the "/healthz" routes.
CartService: Add health check endpoint and update routes Added a new HealthZ endpoint in the Cart Service that responds to HTTP GET requests with a 200 status. Also restructured the existing routes for clarity and better organization, prefixing all cart-related endpoints with '/cart'. Finally, updated the .http file to reflect these changes.