Skip to content
Open
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
2 changes: 1 addition & 1 deletion wishlist/addwishlist.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h1>Add to Wishlist</h1>
division: division
};

fetch('http://localhost:8000/api/lecture/add', {
fetch('http://localhost:8000/api/lectures/add', {
method: 'POST',
headers: {
'Authorization': "Bearer [accessToken]",
Expand Down
8 changes: 4 additions & 4 deletions wishlist/wishlist.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ <h1 class="h3 mb-2 text-gray-800">Wishlist</h1>
<script>
async function loadWishlist() {
const accessToken = localStorage.getItem('[accessToken]');
const response = await fetch('http://localhost:8000/api/lecture/wishlist', {
const response = await fetch('http://localhost:8000/api/lectures/wishlist', {
headers: {
'Authorization': `Bearer [accessToken]`,
'studentId' : '5'
Expand Down Expand Up @@ -169,7 +169,7 @@ <h1 class="h3 mb-2 text-gray-800">Wishlist</h1>
if (lectureId) {
try {
const accessToken = localStorage.getItem('[accessToken]');
const response = await fetch(`http://localhost:8000/api/lecture/delete/${lectureId}`, {
const response = await fetch(`http://localhost:8000/api/lectures/delete/${lectureId}`, {
method: 'DELETE',
headers: {
'Content-Type': 'application/json',
Expand Down Expand Up @@ -200,7 +200,7 @@ <h1 class="h3 mb-2 text-gray-800">Wishlist</h1>
// wishlistId로 lectureId를 조회하는 함수
async function getLectureIdByWishlistId(wishlistId) {
try {
const response = await fetch(`http://localhost:8000/api/lecture/findLectureIdByWishlistId/${wishlistId}`, {
const response = await fetch(`http://localhost:8000/api/lectures/findLectureIdByWishlistId/${wishlistId}`, {
method: 'GET',
headers: {
'Content-Type': 'application/json',
Expand Down Expand Up @@ -239,7 +239,7 @@ <h1 class="h3 mb-2 text-gray-800">Wishlist</h1>

try {
const accessToken = localStorage.getItem('[accessToken]');
const response = await fetch(`http://localhost:8000/api/lecture/updatePriority/${lectureId}`, {
const response = await fetch(`http://localhost:8000/api/lectures/updatePriority/${lectureId}`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
Expand Down