From f153e81acc54f4c2f5aa25a9397e082854ac76d3 Mon Sep 17 00:00:00 2001 From: vyshnav Date: Wed, 2 Oct 2024 12:27:30 +0530 Subject: [PATCH] Refactor API URL in admin verification page --- src/app/admin/verify/[id]/page.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/admin/verify/[id]/page.tsx b/src/app/admin/verify/[id]/page.tsx index f39f975..4dc66b8 100644 --- a/src/app/admin/verify/[id]/page.tsx +++ b/src/app/admin/verify/[id]/page.tsx @@ -6,6 +6,7 @@ import Link from "next/link" import React from "react" async function getPaymentData(id: string) { // Simulate API call + //Hardcoded the url because the other one just did'nt work const response = await fetch(`http://localhost:3000/api/verify-order/${id}`) const data = await response.json() if (response.status === 200) {