Skip to content

Commit

Permalink
요청 포트 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
alaneelee committed Jan 3, 2024
1 parent 663cf09 commit d3b2f1f
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- main
pull_request:

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion src/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ const Header = () => {

const handleLogout = async () => {
try {
const response = await fetch('https://api.lemonair.me:8081/api/logout', {
const response = await fetch('https://api.lemonair.me/api/logout', {
method: 'POST',
headers: {
Authorization: accessToken,
Expand Down
2 changes: 1 addition & 1 deletion src/modal/LoginModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const LoginModal = ({ closeModal }) => {
};

try {
const response = await fetch('https://api.lemonair.me:8081/api/login', {
const response = await fetch('https://api.lemonair.me/api/login', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down
2 changes: 1 addition & 1 deletion src/modal/SignupModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const SignupModal = ({ closeModal }) => {
};

try {
const response = await fetch('https://api.lemonair.me:8081/api/signup', {
const response = await fetch('https://api.lemonair.me/api/signup', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ChannelDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const ChannelDetail = () => {
const fetchData = async () => {
try {
const response = await fetch(
`https://api.lemonair.me:8081/api/channels/${id}`
`https://api.lemonair.me/api/channels/${id}`
);
if (!response.ok) {
throw new Error('Network response was not ok.');
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Home.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const Home = () => {
const [data, setData] = useState([]);

useEffect(() => {
fetch('https://api.lemonair.me:8081/api/channels')
fetch('https://api.lemonair.me/api/channels')
.then((response) => response.json())
.then((data) => {
setData(data);
Expand Down

0 comments on commit d3b2f1f

Please sign in to comment.