Skip to content

Commit

Permalink
update with main
Browse files Browse the repository at this point in the history
  • Loading branch information
F-sh2019 committed Dec 16, 2024
1 parent 512bfdb commit b581bdd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/pages/AllDrugs.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,8 @@ const AllDrugs = () => {
useEffect(() => {
const token = localStorage.getItem('token');

const token = localStorage.getItem('token');

fetch('http://localhost:8000/api/v1/inventory', {
method: 'GET',
method: 'GET', // Or other HTTP methods like POST, PUT, DELETE, etc.
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
Expand Down

0 comments on commit b581bdd

Please sign in to comment.