saveinmed/backend/internal/http/handler
Tiago Yamamoto a3f00cd8ff refactor(handler): extract order and cart handlers
- Extract 5 order handlers to order_handler.go (147 lines)
  - CreateOrder, ListOrders, GetOrder, UpdateOrderStatus, DeleteOrder
- Extract 4 cart/review handlers to cart_handler.go (127 lines)
  - CreateReview, AddToCart, GetCart, DeleteCartItem
- handler.go reduced from 806 to 548 lines
- Total refactoring: ~63% of original (1471 -> 548)

All tests passing
2025-12-20 08:06:07 -03:00
..
cart_handler.go refactor(handler): extract order and cart handlers 2025-12-20 08:06:07 -03:00
company_handler.go refactor(handler): extract company handlers + update READMEs 2025-12-20 07:58:37 -03:00
dto.go refactor(handler): extract DTOs and helpers to dto.go 2025-12-20 07:54:35 -03:00
handler.go refactor(handler): extract order and cart handlers 2025-12-20 08:06:07 -03:00
handler_test.go fix: resolve swagger duplicates and add backend tests 2025-12-19 20:28:39 -03:00
order_handler.go refactor(handler): extract order and cart handlers 2025-12-20 08:06:07 -03:00
product_handler.go refactor(handler): extract product and inventory handlers 2025-12-20 08:02:02 -03:00