DhiWise Node.js API generator allows you to instantly generate secure REST APIs. Just supply your database schema to DhiWise, and a fully documented CRUD APIs will be ready for consumption in a few simple clicks. The generated code is clean, scalable, and customizable.
problem
The problem with the current architecture is that, all the business logic of APIs are in the controller files. so if I want to use to same logic in any other function then I can't reuse the code. (for eg, same APIs logic for desktop , client and device platforms with minor changes)
solution
The service layer (basically called use cases) that contains business logic so it can be resuable for multiple platforms.
problem The problem with the current architecture is that, all the business logic of APIs are in the controller files. so if I want to use to same logic in any other function then I can't reuse the code. (for eg, same APIs logic for desktop , client and device platforms with minor changes)
solution The service layer (basically called use cases) that contains business logic so it can be resuable for multiple platforms.