Vvahidvdn

nestjs-no-logic-controller

Make the controller to only call the service

transformationmigration
Public
0 downloads
1 stars
How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

nestjs-no-logic-controller

Make the controller to only call the service. It's a best practice to have the controller to delegate the business logic to the service.

Before:

ts

After:

ts

Installation

bash

To do

  • Transform the removed code to a service method

Development

bash

License

MIT

Ready to contribute?

Build your own codemod and share it with the community.