Skip to content

Commit

Permalink
fix :: 메인 페이지 no token
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed Feb 28, 2024
1 parent 8da96f8 commit 09e7e49
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/user/src/apis/project.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import axios from 'axios';
import { instance } from './instance';
import { projectType } from '../types/projectType';
import { toast } from 'react-toastify';
Expand All @@ -9,7 +10,8 @@ type createProjectType = {
};

export const getProjects = async () => {
return await instance.get('/project/list');
const url = import.meta.env.VITE_SERVER_BASE_URL;
return await axios.get(`${url}/project/list`);
};

export const getDetailProject = async (id: string) => {
Expand Down

0 comments on commit 09e7e49

Please sign in to comment.