Skip to content

Commit 5ddda46

Browse files
authored
Merge pull request #69 from CS3219-AY2425S1/wheatgrassmc/cs3-45-m517-leetcode-spa-page
Add console logs everywhere
2 parents a07a90f + ceeb8d2 commit 5ddda46

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

frontend/src/api/leetcode-dashboard.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ import {
55
} from "@/types/find-match";
66

77
const QUESTION_SERVICE = process.env.NEXT_PUBLIC_QUESTION_SERVICE;
8+
console.log(QUESTION_SERVICE);
89

910
export const createSingleLeetcodeQuestion = async (
1011
data: NewQuestionData
1112
): Promise<QuestionFull> => {
1213
const url = `${QUESTION_SERVICE}/create`;
14+
console.log(url);
1315
const resp = await fetch(url, {
1416
method: "POST",
1517
headers: {
@@ -32,6 +34,7 @@ export const getLeetcodeDashboardData = async (): Promise<
3234
QuestionMinified[]
3335
> => {
3436
const url = `${QUESTION_SERVICE}/all`;
37+
console.log(url);
3538
const response = await fetch(url);
3639
const data = await response.json();
3740
return data;
@@ -54,6 +57,7 @@ export const updateSingleLeetcodeQuestion = async ({
5457
complexity,
5558
}: QuestionFull) => {
5659
const url = `${QUESTION_SERVICE}/${questionId}/update`;
60+
console.log(url);
5761
const resp = await fetch(url, {
5862
method: "POST",
5963
headers: {
@@ -76,6 +80,7 @@ export const updateSingleLeetcodeQuestion = async ({
7680

7781
export const deleteSingleLeetcodeQuestion = async (questionId: string) => {
7882
const url = `${QUESTION_SERVICE}/${questionId}/delete`;
83+
console.log(url);
7984
const resp = await fetch(url, {
8085
method: "POST",
8186
headers: {

0 commit comments

Comments
 (0)