Skip to content

Commit

Permalink
Merge pull request #36 from KTB-19/feature/react-chatting
Browse files Browse the repository at this point in the history
refactor : api endpoint 수정
  • Loading branch information
KimMinWoooo authored Sep 10, 2024
2 parents ccebac5 + 0f406ba commit 4e2c3aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/Chat/Chat.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function Chat() {
let isRunningTimesQuery = false;

if (movieNameRef.current && regionRef.current && dateRef.current) {
endpoint = `/api/v1/movie/running-times`;
endpoint = `${process.env.REACT_APP_ENDPOINT}/api/v1/movie/running-times`;
isRunningTimesQuery = true;
body = {
movieName: movieNameRef.current || "",
Expand All @@ -251,7 +251,7 @@ function Chat() {
}
// else (movieNameRef.current || regionRef.current || dateRef.current) {
else {
endpoint = `/api/v1/movie/query/additional`;
endpoint = `${process.env.REACT_APP_ENDPOINT}/api/v1/movie/query/additional`;
body = {
parsedQuery: {
...(movieNameRef.current && { movieName: movieNameRef.current }),
Expand Down

0 comments on commit 4e2c3aa

Please sign in to comment.