Closed changchunlei closed 4 months ago
alfa-leetcode-api
repo 🤝You added more queries & new endpoints, and I greatly appreciate your hard work. However, I'd like to ask one question and request one change.
Q. Why do we need /dailyQuestion
& /questionOfTodayQuery
when we have /daily
? And both of your routes give pretty much the same data, so why 2 routes?
Please write all of your route logic inside the leetCode.ts
file and explore the codebase to see all the data formatting code written in a separate file.
Thanks my friend. To answer your question: The need for both /dailyQuestion
and /questionOfTodayQuery
routes, despite having /daily
, there are specific requirements of the iOS build I am working on. The raw daily question includes extra properties that are highly beneficial for my iOS app.
The change required:
Answer:
Absolutely, it makes sense. my current focus is on the iOS project, which is quite demanding. As soon as I have some bandwidth, I'll refactor the code, moving all route logic into the leetCode.ts file and ensuring data formatting code is separated. I will raise a new PR then.
Thank you @changchunlei for your answers 😊
Do not need to do the changes right away, first you build your project, then make changes and raise a new PR.
Your code looks great, and I appreciate the thoroughness of your work. The new features you added are well-implemented, and I've reviewed everything. I'm happy to approve it for merging. 🚀 Thanks again for your valuable contribution 😄
Thank you for releasing this API; it's greatly appreciated. I've expanded the queries for LeetCode and integrated API caching and Axios for faster updates. Please review the changes at your convenience. I've also removed the personalized content.