headersy
This commit is contained in:
@@ -12,7 +12,7 @@ export async function toggleNoticeStatus(noticeId) {
|
||||
`${API_URL}/toggle/${noticeId}`,
|
||||
{},
|
||||
{
|
||||
headers,
|
||||
headers: headers,
|
||||
}
|
||||
);
|
||||
return response.data;
|
||||
@@ -27,7 +27,7 @@ export async function getWishlist() {
|
||||
const headers = token ? { Authorization: `Bearer ${token}` } : {};
|
||||
|
||||
try {
|
||||
const response = await axios.get(`${API_URL}/`, { headers });
|
||||
const response = await axios.get(`${API_URL}/`, { headers: headers });
|
||||
return response.data;
|
||||
} catch (error) {
|
||||
console.error("Error fetching wishlist:", error);
|
||||
|
||||
Reference in New Issue
Block a user