Skip to content

Commit ceeb8d2

Browse files
committed
Add console logs everywhere
1 parent 3463716 commit ceeb8d2

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
// console.log(data);
@@ -56,6 +59,7 @@ export const updateSingleLeetcodeQuestion = async ({
5659
complexity,
5760
}: QuestionFull) => {
5861
const url = `${QUESTION_SERVICE}/${questionId}/update`;
62+
console.log(url);
5963
const resp = await fetch(url, {
6064
method: "POST",
6165
headers: {
@@ -78,6 +82,7 @@ export const updateSingleLeetcodeQuestion = async ({
7882

7983
export const deleteSingleLeetcodeQuestion = async (questionId: string) => {
8084
const url = `${QUESTION_SERVICE}/${questionId}/delete`;
85+
console.log(url);
8186
const resp = await fetch(url, {
8287
method: "POST",
8388
headers: {

0 commit comments

Comments
 (0)