8000 Grow: Hdi api url in fetchQuery · PrashanthaTP/leetcode-client@5e1d9f4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5e1d9f4

Browse files
committed
Grow: Hdi api url in fetchQuery
+ Use the url provided by config
1 parent 6563208 commit 5e1d9f4

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

EXTRAS.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Extras
2+
3+
## Todo
4+
5+
+ Caching : Daily Challenge (why request repeatedly if question remains same for entire day!!!?)
6+
7+
## .env.json
8+
9+
+ Its where secrets are stored 😉
10+
(event the api route)
11+
12+

lib/requests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import config from "../config/config";
33

44
export const fetchQuery = async (query) => {
55
const data = await axios({
6-
url: "http://localhost:8000/api/v1/query",
6+
url: config.queryPostUrl,
77
method: "POST",
88
data: {
99
LEETCODE_SESSION: config.env.LEETCODE_SESSION,

0 commit comments

Comments
 (0)
0