Skip to content

Commit

Permalink
Refactor API URL in admin verification page
Browse files Browse the repository at this point in the history
  • Loading branch information
Vyshnav001 committed Oct 2, 2024
1 parent 25540de commit f153e81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/admin/verify/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

1 comment on commit f153e81

@joywin2003
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is a hardcoded url

Please sign in to comment.