Skip to content

Commit

Permalink
Refactor: Remove token getAllMarker
Browse files Browse the repository at this point in the history
  • Loading branch information
2YH02 committed Feb 23, 2024
1 parent 103bcb5 commit 9a1f7c3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions frontend/src/api/markers/getAllMarker.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
import axios from "axios";

const getAllMarker = async () => {
const token = JSON.parse(localStorage.getItem("user") as string).state.user
.token;

try {
const res = await axios.get(
`${import.meta.env.VITE_LOCAL_URL}/api/v1/markers/`,
{
headers: {
Authorization: `Bearer ${token}`,
},
}
`${import.meta.env.VITE_LOCAL_URL}/api/v1/markers`
);

return res;
Expand Down

0 comments on commit 9a1f7c3

Please sign in to comment.