Skip to content

Commit

Permalink
fix endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
thanhdanh27600 committed Mar 20, 2024
1 parent 10a2c0e commit 452a0e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import '../styles/globals.css';

const getLocation = (callback: Function) => async () => {
try {
const response = await axios.post('api/l');
const response = await axios.post('/api/l');
const data = response.data;
callback(data);
} catch (error) {
Expand Down

0 comments on commit 452a0e5

Please sign in to comment.