From 94bced580a429b443c2dcd6174d51f066176e980 Mon Sep 17 00:00:00 2001 From: seaznCode Date: Tue, 13 Jan 2026 16:11:07 +0100 Subject: [PATCH] fix: correct admin contract preview API endpoint --- src/app/utils/api.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/utils/api.ts b/src/app/utils/api.ts index 68ea96d..a1a4c90 100644 --- a/src/app/utils/api.ts +++ b/src/app/utils/api.ts @@ -52,7 +52,8 @@ export const API_ENDPOINTS = { ADMIN_COFFEE_UPDATE: '/api/admin/coffee/:id', ADMIN_COFFEE_SET_STATE: '/api/admin/coffee/:id/state', ADMIN_COFFEE_DELETE: '/api/admin/coffee/:id', - ADMIN_CONTRACT_PREVIEW: '/api/admin/contract-preview/:id', + // Contract preview (admin) – matches backend route + ADMIN_CONTRACT_PREVIEW: '/api/admin/contracts/:id/preview', } // API Helper Functions