saveinmed/backend/internal/http/handler
Tiago Yamamoto 61f73c3421 fix: allow buyers to view shipping settings and filter orders by role
- shipping_handler: Remove auth restriction on GetShippingSettings (buyers need to see sellers' shipping options)
- order_handler: Add role query param parsing (buyer/seller) to filter orders by requester's company ID

Fixes 500 errors on:
- GET /api/v1/shipping/settings/{vendor_id}
- GET /api/v1/orders?role=buyer
- GET /api/v1/orders?role=seller
2025-12-26 22:35:27 -03:00
..
cart_handler.go refactor(handler): extract order and cart handlers 2025-12-20 08:06:07 -03:00
company_handler.go feat: tenant model, seeder, and product search with distance 2025-12-20 09:03:13 -03:00
dashboard_handler.go refactor(handler): complete package decomposition - 92% extracted 2025-12-20 08:10:56 -03:00
dto.go feat: Implement Payment Methods, Shipping Improvements, Swagger Audit, and UUIDv7 Migration 2025-12-26 17:48:50 -03:00
handler.go fix(auth): support login with email in addition to username 2025-12-26 17:05:12 -03:00
handler_test.go feat: Implement Payment Methods, Shipping Improvements, Swagger Audit, and UUIDv7 Migration 2025-12-26 17:48:50 -03:00
marketplace_handler.go Add full auth endpoints and swagger updates 2025-12-21 22:37:54 -03:00
order_handler.go fix: allow buyers to view shipping settings and filter orders by role 2025-12-26 22:35:27 -03:00
payment_handler.go refactor(handler): complete package decomposition - 92% extracted 2025-12-20 08:10:56 -03:00
product_handler.go feat: overhaul shipping module, add seeder, and improve order UI 2025-12-23 18:23:32 -03:00
review_handler.go feat: add quantity selector, fix offer display, swap filter/location layout 2025-12-26 22:16:48 -03:00
shipping_handler.go fix: allow buyers to view shipping settings and filter orders by role 2025-12-26 22:35:27 -03:00
user_handler.go feat(backend): switch auth to username and cleanup db config 2025-12-21 23:04:47 -03:00