dwindown
3ed2a081e5
refactor: Standardize edit routes to /{entity}/{id}/edit
Consistency fix: All edit routes now follow same pattern
Before:
- Products: /products/123/edit ✅
- Orders: /orders/123/edit ✅
- Coupons: /coupons/123 ❌ (inconsistent)
After:
- Products: /products/123/edit ✅
- Orders: /orders/123/edit ✅
- Coupons: /coupons/123/edit ✅ (now consistent)
Changes:
1. App.tsx - Route: /coupons/:id → /coupons/:id/edit
2. Coupons/index.tsx - Link: /coupons/${id} → /coupons/${id}/edit
Benefits:
✅ Consistent URL pattern across all entities
✅ Clear intent (edit vs detail)
✅ Easier to add detail pages later if needed
✅ Follows REST conventions
Note: Even though coupons/products have no detail page in admin,
using /edit suffix maintains consistency and allows future expansion.
2025-11-20 22:33:21 +07:00
..
2025-11-04 11:19:00 +07:00
2025-11-20 22:33:21 +07:00
2025-11-05 18:54:41 +07:00
2025-11-13 10:13:17 +07:00
2025-11-04 11:19:00 +07:00
2025-11-13 11:50:38 +07:00
2025-11-15 20:05:50 +07:00
2025-11-13 09:50:33 +07:00
2025-11-13 13:47:22 +07:00
2025-11-13 15:44:06 +07:00
2025-11-13 11:57:55 +07:00
2025-11-13 12:20:41 +07:00
2025-11-13 12:20:41 +07:00
2025-11-04 11:19:00 +07:00
2025-11-04 11:19:00 +07:00
2025-11-04 11:19:00 +07:00
2025-11-04 11:19:00 +07:00
2025-11-04 11:19:00 +07:00
2025-11-13 10:34:07 +07:00
2025-11-04 11:19:00 +07:00