Skip to content

Commit

Permalink
Merge pull request #28 from hdcola/yana
Browse files Browse the repository at this point in the history
Update stores items api call
  • Loading branch information
tamara-plante authored Nov 4, 2024
2 parents 986202c + 6d77fb4 commit 8d00b78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Dashboard/ManageItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function ManageItems() {
useEffect(() => {
const fetchItemsData = async () => {
try {
const response = await axios.get(`${apiUrl}/api/items`, {
const response = await axios.get(`${apiUrl}/api/stores/items`, {
headers: {
Authorization: `Bearer ${authToken}`,
},
Expand Down Expand Up @@ -73,7 +73,7 @@ export default function ManageItems() {
event.preventDefault();
try {
await schema.validate(formValues, { abortEarly: false });
await axios.post(`${apiUrl}/api/items/add`, formValues, {
await axios.post(`${apiUrl}/api/stores/items`, formValues, {
headers: {
Authorization: `Bearer ${authToken}`,
},
Expand Down

0 comments on commit 8d00b78

Please sign in to comment.