itemLookUp complete and addItem endpoint
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import fetch from "node-fetch";
|
||||
import fetchEbayToken from "../utils/fetchEbayToken.js"; // Adjust the import path according to your project structure
|
||||
import fetchEbayReadToken from "../utils/fetchEbayReadToken.js"; // Adjust the import path according to your project structure
|
||||
|
||||
export const itemLookup = async (req, res) => {
|
||||
const productCode = req.query.productCode;
|
||||
const oauthToken = await fetchEbayToken();
|
||||
const oauthToken = await fetchEbayReadToken();
|
||||
console.log(productCode);
|
||||
try {
|
||||
const response = await fetch(
|
||||
|
||||
Reference in New Issue
Block a user