Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
14 changes: 7 additions & 7 deletions src/App.jsx → src/app/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import {
useLocation,
Navigate,
} from 'react-router-dom';
import Home from './pages/Home';
import TrackInfo from './pages/TrackInfo';
import Home from './pages/home';
import TrackInfo from './pages/info';
import NotFound from './pages/NotFound';
import Search from './pages/Search';
import Splash from './pages/Splash';
import Header from './layouts/Header';
import Footer from './layouts/Footer';
import Login from './pages/Login';
import MyPage from './pages/My';
import Splash from './pages/splash';
import Header from './widgets/navigation/Header';
import Footer from './widgets/navigation/Footer';
import Login from './pages/login';
import MyPage from './pages/my';
import UploadSection from './components/UploadSection';

function App() {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// API 요청 관련 함수
// src/services/userService.js
import { BASE_URL } from '../constants/api';
import { BASE_URL } from '../../../constants/api';

export const loginWithSejongPortal = async (sejongPortalId, sejongPortalPassword) => {
export const loginWithSejongPortal = async (
sejongPortalId,
sejongPortalPassword
) => {
const response = await fetch(`${BASE_URL}/api/auth/sejong/login`, {
method: 'POST',
headers: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// src/services/userDataService.js
import { BASE_URL } from '../constants/api';
import useUserStore from '../stores/useUserStore';
import { BASE_URL } from '../../../constants/api';
import useUserStore from '../../../stores/useUserStore';

export const uploadStudentExcel = async (file) => {
const studentId = useUserStore.getState().studentId;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BASE_URL } from '../constants/api';
import { BASE_URL } from '../../../constants/api';

export const postUserTrack = async (studentId, trackName) => {
const response = await fetch(
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 0 additions & 11 deletions src/services/apiClient.js

This file was deleted.

File renamed without changes.
11 changes: 11 additions & 0 deletions src/shared/api/apiClient.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import axios from 'axios';
import { BASE_URL } from '../../constants/api';

const apiClient = axios.create({
baseURL: BASE_URL,
headers: {
'Content-Type': 'application/json',
},
});

export default apiClient;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.