Changeset 8496f3c for src/components
- Timestamp:
- 09/15/26 21:16:02 (8 days ago)
- Branches:
- master
- Children:
- b8093a0
- Parents:
- 4fe4582
- Location:
- src/components
- Files:
-
- 2 added
- 2 edited
-
admin-navbar.tsx (added)
-
enroll-semester-dialog.tsx (added)
-
exams.tsx (modified) (2 diffs)
-
header.tsx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/components/exams.tsx
r4fe4582 r8496f3c 5 5 import { faSort, faSortUp, faSortDown } from '@fortawesome/free-solid-svg-icons'; 6 6 import { getAccessToken } from '@/lib/auth'; 7 import { apiUrl } from '@/lib/api'; 7 8 8 9 type PassedSubject = { … … 56 57 57 58 try { 58 const response = await fetch( 'https://iknow-api.onrender.com/api/user/getPassedSubjects', {59 const response = await fetch(apiUrl('/api/user/getPassedSubjects'), { 59 60 method: 'GET', 60 61 headers: { -
src/components/header.tsx
r4fe4582 r8496f3c 9 9 import { useTranslation } from 'react-i18next'; 10 10 import LanguageSwitcher from './LanguageSwitcher'; 11 import { apiUrl } from '@/lib/api'; 11 12 12 13 const Header = () => { … … 20 21 if (!token) return; 21 22 try { 22 const response = await fetch( 'https://iknow-api.onrender.com/api/user/getUser', {23 const response = await fetch(apiUrl('/api/user/getUser'), { 23 24 method: 'GET', 24 25 headers: { Authorization: `Bearer ${token}` },
Note:
See TracChangeset
for help on using the changeset viewer.
