Hacker News new | ask | show | jobs
by trwrto 947 days ago
Where should the business logic rather be? My tests are typically calling APIs to test the business logic. Trying to improve myself here.
1 comments

There aren‘t any hard rules here, but you can try to build your business logic as if it was a library, where your HTTP API is merely a interface to it.