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
// console.log(data);
@@ -56,6 +59,7 @@ export const updateSingleLeetcodeQuestion = async ({
56
59
complexity,
57
60
} : QuestionFull ) => {
58
61
const url = `${ QUESTION_SERVICE } /${ questionId } /update` ;
62
+ console . log ( url ) ;
59
63
const resp = await fetch ( url , {
60
64
method : "POST" ,
61
65
headers : {
@@ -78,6 +82,7 @@ export const updateSingleLeetcodeQuestion = async ({
78
82
79
83
export const deleteSingleLeetcodeQuestion = async ( questionId : string ) => {
80
84
const url = `${ QUESTION_SERVICE } /${ questionId } /delete` ;
85
+ console . log ( url ) ;
81
86
const resp = await fetch ( url , {
82
87
method : "POST" ,
83
88
headers : {
You can’t perform that action at this time.
0 commit comments