Closed hardik-pratap-singh closed 6 months ago
@hardik-pratap-singh This looks great! Since its a big change and we don't have automated tests (something we need to fix) it will take us a while to review this. Give us time till next week to get back to you on this.
I have reviewed this PR, things look good to me
Its read to merge
These are the following things I tested on Chrome
, Brave
and Firefox
@dennyabrain things look good to me, can you take a final look and merge the PR
name: Fix for Issue #559 about: Refactored APIs into MVC architecture labels: priority:medium, enhancement, backend
Describe the PR
Earlier, all the APIs were present in single file called
index.js
which was really difficult to maintain for the maintainers. Now this PR has divided those endpoints into files and these files contains similar types of endpoints. Also, this PR has separated the names of endpoints along with their implementations in separate folders calledroutes
andcontrollers
respectively.Steps to test the PR
Modified File :
browser-extension/api-server/index.js
New Directory :browser-extension/api-server/routes
New Directory :browser-extension/api-server/controllers
Expected behavior
browser-extension/api-server/routes
browser-extension/api-server/controllers
Now,
browser-extension/api-server/index.js
looks something like this :