Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
14fc569
Main->MainPage
Baetato Jan 9, 2024
ef49d53
test
taejun-J Jan 9, 2024
2ea7f66
메인화면 라우팅
Baetato Jan 24, 2024
ef92737
메인화면 무한 스크롤
Baetato Jan 29, 2024
324a0d4
메인화면 호버
Baetato Jan 30, 2024
9894cfe
메인화면 사이드 바
Baetato Jan 30, 2024
1388685
css 수정 완료
Baetato Jan 30, 2024
3579397
first
taejun-J Feb 4, 2024
b2b1226
test
taejun-J Feb 7, 2024
703ddb2
test2
taejun-J Feb 7, 2024
4397794
서버 연결 테스트코드
kojesung Feb 8, 2024
dcdc94c
해시태그 업로드 기능 완성
kojesung Feb 12, 2024
28fa823
recoil추가
kojesung Feb 13, 2024
2faab1a
헤더login시 accesstoken, userId 전역관리
kojesung Feb 15, 2024
336ac83
질문/답변 조회 기능 완성
kojesung Feb 16, 2024
a5a6078
답변등록 부모/자식 분리
kojesung Feb 16, 2024
1c2a4f9
답변 등록 기능 완성
kojesung Feb 16, 2024
225e6fa
질문등록기능 완성
kojesung Feb 17, 2024
f4c3f2d
test
kojesung Feb 17, 2024
1fce89b
localstorage 로그인 상태 관리
kojesung Feb 17, 2024
f9ea024
질문 등록 시간 반영
kojesung Feb 17, 2024
8770639
메인페이지 연동 완료
Baetato Feb 17, 2024
8fa2ba4
questionId 추가
Baetato Feb 17, 2024
ad1e677
localStorage 토큰, id값 추가
kojesung Feb 18, 2024
e263268
답변 좋아요 기능 추가
kojesung Feb 18, 2024
31c8bcf
수정하기 렌더링 추가
kojesung Feb 18, 2024
2e191ee
search페이지 추가
taejun-J Feb 18, 2024
48669d2
mypage/main 병합
kojesung Feb 18, 2024
f331887
Main 병합
kojesung Feb 18, 2024
a657afe
닉네임 변경 구현, 검색페이지 수정
taejun-J Feb 18, 2024
aed2d60
수정
taejun-J Feb 19, 2024
db3aac5
1차 수정
taejun-J Feb 20, 2024
904d0cb
2차 수정
taejun-J Feb 20, 2024
a60cb11
수정 3차
taejun-J Feb 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions lib/api/user.service.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from 'axios';

/**
* 기본적인 HttpClient 객체 구조
* 기본적인 HttpClient 객체 구조
* GET, POST, PUT, DELETE 메서드 제공
*
* @example
Expand All @@ -17,26 +17,26 @@ import axios from 'axios';
* .then(response => console.log(response.data))
* .catch(error => console.error(error));
*/
class HttpClient {
constructor(baseURL) {
this.client = axios.create({
baseURL: baseURL
});
}
// class HttpClient {
// constructor(baseURL) {
// this.client = axios.create({
// baseURL: baseURL
// });
// }

get(url, config = {}) {
return this.client.get(url, config);
}
// get(url, config = {}) {
// return this.client.get(url, config);
// }

post(url, data, config = {}) {
return this.client.post(url, data, config);
}
// post(url, data, config = {}) {
// return this.client.post(url, data, config);
// }

put(url, data, config = {}) {
return this.client.put(url, data, config);
}
// put(url, data, config = {}) {
// return this.client.put(url, data, config);
// }

delete(url, config = {}) {
return this.client.delete(url, config);
}
}
// delete(url, config = {}) {
// return this.client.delete(url, config);
// }
// }
Loading