Skip to content

Commit

Permalink
https 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
zzz664 committed Dec 13, 2023
1 parent 7d5932a commit febdd29
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const AdminAddKeywordPage = () => {
try {
axios.defaults.headers.common["Authorization"] = `Bearer ${JSON.parse(window.sessionStorage.getItem("token_info")).access_token}`;
const response = await axios.post(
"http://"+process.env.REACT_APP_ADDRESS+"/keywords",
"https://"+process.env.REACT_APP_ADDRESS+"/keywords",
{ "name": keyword, "description": description, "memo": memo },
);
setIsSuccess(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const AdminDetailKeywordPage = () => {
try {
axios.defaults.headers.common["Authorization"] = `Bearer ${JSON.parse(window.sessionStorage.getItem("token_info")).access_token}`;
const response = await axios.put(
"http://"+process.env.REACT_APP_ADDRESS+"/keywords",
"https://"+process.env.REACT_APP_ADDRESS+"/keywords",
{ "id": registerId, "description": desc, "isActive": true, "memo": reason },
);
setIsSuccess(true);
Expand All @@ -186,7 +186,7 @@ const AdminDetailKeywordPage = () => {
try {
axios.defaults.headers.common["Authorization"] = `Bearer ${JSON.parse(window.sessionStorage.getItem("token_info")).access_token}`;
const response = await axios.put(
"http://"+process.env.REACT_APP_ADDRESS+"/keywords",
"https://"+process.env.REACT_APP_ADDRESS+"/keywords",
{ "id": registerId, "description": desc, "isActive": isDisable ? false : location.state.isActive, "memo": reason },
);
closeModal();
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Admin/LoginPage/LoginForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const LoginForm = (props) => {

try {
const response = await axios.post(
"http://"+process.env.REACT_APP_ADDRESS+"/auth/signin",
"https://"+process.env.REACT_APP_ADDRESS+"/auth/signin",
{ "login_id": props.id, "password": props.pw },
{"Content-Type": "application/json", "accept": "application/json"});
window.sessionStorage.setItem("token_info", JSON.stringify(response.data.token_info));
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/Admin/ManagePage/AdminManagePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const AdminManagePage = (props) => {
const fetchKeywordList = async () => {
let copy_keywordList = [...keywordList];

const response = await axios.get("http://"+process.env.REACT_APP_ADDRESS+"/keywords");
const response = await axios.get("https://"+process.env.REACT_APP_ADDRESS+"/keywords");

copy_keywordList = [...response.data];
setKeywordList(copy_keywordList);
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/CommentDetailPage/CommentDetailPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,14 @@ const CommentDetailPage = () => {
}, []);

const CheckKeywordAndLoading = async () => {
let response = await axios.get("http://"+process.env.REACT_APP_ADDRESS+"/keywords");
let response = await axios.get("https://"+process.env.REACT_APP_ADDRESS+"/keywords");
if(await response.data.find(FindKeyword) === undefined || location.state === null) {
if(location.state === null)
setIsAbnormal(true);
openModal();
} else {
setKeywordId(response.data.find(FindKeyword).id);
response = await axios.get("http://"+process.env.REACT_APP_ADDRESS+
response = await axios.get("https://"+process.env.REACT_APP_ADDRESS+
"/search/detail/comment/"+location.state.comment.id);
setData(response.data);
setIsRender(true);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/pages/EmotionDetailPage/EmotionDetailPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const EmotionDetailPage = () => {
}, []);

const CheckKeywordAndLoading = async () => {
let response = await axios.get("http://"+process.env.REACT_APP_ADDRESS+"/keywords");
let response = await axios.get("https://"+process.env.REACT_APP_ADDRESS+"/keywords");
if(await response.data.find(FindKeyword) === undefined || location.state === null) {
if(location.state === null)
setIsAbnormal(true);
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/pages/SearchResultPage/SearchResultPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const SearchResultPage = () => {
}, []);

const CheckKeyword = async () => {
let response = await axios.get("http://"+process.env.REACT_APP_ADDRESS+"/keywords");
let response = await axios.get("https://"+process.env.REACT_APP_ADDRESS+"/keywords");
if(await response.data.find(FindKeyword) === undefined) {
openModal();
} else {
Expand Down Expand Up @@ -198,7 +198,7 @@ const SearchResultPage = () => {
setFrom(search_from);
setTo(search_to);

let response = await axios.get("http://"+process.env.REACT_APP_ADDRESS+
let response = await axios.get("https://"+process.env.REACT_APP_ADDRESS+
"/daily-keyword-big-emotions-cnt?keyword_id="+id+
"&from="+search_from+
"&to="+search_to);
Expand All @@ -212,7 +212,7 @@ const SearchResultPage = () => {
setChartLabel(lbs);
setChartDs(ds);

response = await axios.get("http://"+process.env.REACT_APP_ADDRESS+
response = await axios.get("https://"+process.env.REACT_APP_ADDRESS+
"/search/keyword-search-result?name="+searchKeyword+
"&from="+search_from+
"&to="+search_to);
Expand Down

0 comments on commit febdd29

Please sign in to comment.