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-20 22:33:21 +07:00
2025-11-04 11:19:00 +07:00
2025-11-11 00:49:07 +07:00
2025-11-11 09:49:31 +07:00
2025-11-20 20:40:43 +07:00
2025-11-20 22:22:40 +07:00
2025-11-20 20:40:43 +07:00
2025-11-11 10:14:09 +07:00