Skip to content

Commit

Permalink
Merge pull request #9 from team-GDGline/feat/endpoint
Browse files Browse the repository at this point in the history
Feat/endpoint
  • Loading branch information
Catleap02 authored Nov 15, 2024
2 parents 4ade86e + 1e9fd72 commit ad35976
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/CheckDuplicateEmail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const CheckDuplicateEmail: React.FC<CheckDEProps> = ({ value, text, handleChange

const checkEmail = async () => {
try {
const response = await axios.get(`${API_BASE_URL}/api/v1/user/email/${value}`);
const response = await axios.get(`/api/v1/user/email/${value}`);
if (response.data) {
toast({
title: "가입 가능한 이메일입니다.",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/MainPage/components/Aquarium.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const Aquarium: React.FC<AquariumProps> = ({ children }) => {
useEffect(() => {
const fetchFishData = async () => {
try {
// const response = await axios.get(`${API_BASE_URL}/api/v1/pokedex`,
// const response = await axios.get(`/api/v1/pokedex`,
// { headers: {
// Authorization: `Bearer ${accessToken}`, // Bearer 토큰 추가
// },
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Start/SignupPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const SignupPage: React.FC = () => {

const handleSignup = async () => {
try {
const response = await axios.post(`${API_BASE_URL}/api/v1/user/signup`, {
const response = await axios.post(`/api/v1/user/signup`, {
email,
nickName,
password,
Expand Down

0 comments on commit ad35976

Please sign in to comment.