-
Notifications
You must be signed in to change notification settings - Fork 1
/
potd.js
43 lines (35 loc) · 787 Bytes
/
potd.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
let today = new Date();
let date =
today.getDate() + "-" + (today.getMonth() + 1) + "-" + today.getFullYear();
module.exports = {
CodingNinjas_API_ENDPOINT: `https://api.codingninjas.com/api/v3/public_section/potd/problem_list?date=${date}`,
GFG_API_ENDPOINT:
"https://practiceapi.geeksforgeeks.org/api/v1/problems-of-day/problem/today/",
LEETCODE_API_ENDPOINT: "https://leetcode.com/graphql",
DAILY_CODING_CHALLENGE_QUERY: `
query questionOfToday {
activeDailyCodingChallengeQuestion {
date
userStatus
link
question {
acRate
difficulty
freqBar
frontendQuestionId: questionFrontendId
isFavor
paidOnly: isPaidOnly
status
title
titleSlug
hasVideoSolution
hasSolution
topicTags {
name
id
slug
}
}
}
}`
};