You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We could move frontend/src/api.js into its own place as done in CAT for example.
I see two reasons:
first one is kindof opinionated: imo the root dir should be populated with as fewer things as possible because it helps to understand better the structure of the code.
second one is generic: now we have in this file the logic (copy-pasted from cat) to connect with the API (business agnostic), and also the "repository-like" code (business related). Splitting both parts properly, and moving business agnostic to a service, and the business logic to a repository would help us to reuse and test better.
The text was updated successfully, but these errors were encountered:
from #16 (comment)
We could move
frontend/src/api.js
into its own place as done inCAT
for example.The text was updated successfully, but these errors were encountered: