File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,13 @@ import {
5
5
} from "@/types/find-match" ;
6
6
7
7
const QUESTION_SERVICE = process . env . NEXT_PUBLIC_QUESTION_SERVICE ;
8
+ console . log ( QUESTION_SERVICE ) ;
8
9
9
10
export const createSingleLeetcodeQuestion = async (
10
11
data : NewQuestionData
11
12
) : Promise < QuestionFull > => {
12
13
const url = `${ QUESTION_SERVICE } /create` ;
14
+ console . log ( url ) ;
13
15
const resp = await fetch ( url , {
14
16
method : "POST" ,
15
17
headers : {
@@ -32,6 +34,7 @@ export const getLeetcodeDashboardData = async (): Promise<
32
34
QuestionMinified [ ]
33
35
> => {
34
36
const url = `${ QUESTION_SERVICE } /all` ;
37
+ console . log ( url ) ;
35
38
const response = await fetch ( url ) ;
36
39
const data = await response . json ( ) ;
37
40
return data ;
@@ -54,6 +57,7 @@ export const updateSingleLeetcodeQuestion = async ({
54
57
complexity,
55
58
} : QuestionFull ) => {
56
59
const url = `${ QUESTION_SERVICE } /${ questionId } /update` ;
60
+ console . log ( url ) ;
57
61
const resp = await fetch ( url , {
58
62
method : "POST" ,
59
63
headers : {
@@ -76,6 +80,7 @@ export const updateSingleLeetcodeQuestion = async ({
76
80
77
81
export const deleteSingleLeetcodeQuestion = async ( questionId : string ) => {
78
82
const url = `${ QUESTION_SERVICE } /${ questionId } /delete` ;
83
+ console . log ( url ) ;
79
84
const resp = await fetch ( url , {
80
85
method : "POST" ,
81
86
headers : {
You can’t perform that action at this time.
0 commit comments