Skip to content

Commit

Permalink
api url 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaisqls committed Nov 30, 2023
1 parent 4d300fc commit 323003f
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build/static/js/main.8db9e1fa.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/static/js/main.8db9e1fa.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions src/manage/ProjectApprove.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const ProjectApprove = () => {
}, []);

useEffect(() => {
const url = 'http://localhost:8080/project-secret-manager/project?secret=' + secret
const url = 'https://prod-server.xquare.app/project-secret-manager/project?secret=' + secret
axios.get(url)
.then((res) => {setData(res.data); setFetchError("")})
.catch((err) => setFetchError("권한이 없습니다"));
Expand All @@ -31,7 +31,7 @@ export const ProjectApprove = () => {
setProgress('승인중...')

selected.forEach(async (it) => {
const url = 'http://localhost:8080/project-secret-manager/project/approve/' + it.id + '?secret=' + secret
const url = 'https://prod-server.xquare.app/project-secret-manager/project/approve/' + it.id + '?secret=' + secret
await axios.post(url)
.then((res) => {
setProgressed([...progressed, it]);
Expand All @@ -57,7 +57,7 @@ export const ProjectApprove = () => {

setProgress('삭제중...')
setIsProgressing(true)
const url = 'http://localhost:8080/project-secret-manager/project/' + it.id + '?secret=' + secret
const url = 'https://prod-server.xquare.app/project-secret-manager/project/' + it.id + '?secret=' + secret
await axios.delete(url)
.then((res) => {
setProgressed([...progressed, it]);
Expand Down
6 changes: 3 additions & 3 deletions src/manage/ProjectList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const ProjectList = () => {
}, []);

useEffect(() => {
const url = 'http://localhost:8080/project-secret-manager/project?secret=' + secret
const url = 'https://prod-server.xquare.app/project-secret-manager/project?secret=' + secret
console.log(url)
axios.get(url)
.then((res) => {setData(res.data); setFetchError("")})
Expand All @@ -61,7 +61,7 @@ export const ProjectList = () => {
setProgress('발급중...')

selected.forEach(async (it) => {
const url = 'http://localhost:8080/project-secret-manager/project/' + it.id + '/access-key?secret=' + secret
const url = 'https://prod-server.xquare.app/project-secret-manager/project/' + it.id + '/access-key?secret=' + secret
await axios.patch(url)
.then((res) => {
setProgressed([...progressed, it]);
Expand Down Expand Up @@ -90,7 +90,7 @@ export const ProjectList = () => {

setProgress('삭제중...')
setIsProgressing(true)
const url = 'http://localhost:8080/project-secret-manager/project/' + it.id + '?secret=' + secret
const url = 'https://prod-server.xquare.app/project-secret-manager/project/' + it.id + '?secret=' + secret
await axios.delete(url)
.then((res) => {
setProgressed([...progressed, it]);
Expand Down
2 changes: 1 addition & 1 deletion src/request/Request.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const Request = () => {
};

// Axios 요청 보내기
axios.post('http://localhost:8080/project-secret-manager/project', dataToSubmit)
axios.post('https://prod-server.xquare.app/project-secret-manager/project', dataToSubmit)
.then((res) => {console.log(res); window.location.href = '/done?projectname=' + projectNameKrInput.value;})
.catch((err) => console.error(err));
}
Expand Down

0 comments on commit 323003f

Please sign in to comment.