It depends on the functionality of the script. If the script serves as an endpoint for handling requests from clients and returning responses, it should be categorized as a controller. On the other hand, if the script is responsible for performing specific business logic and providing functionality to the entire application, it should be categorized as a service. Ultimately, the categorization should reflect the purpose and functionality of the script in the application.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-09-11 11:00:00 +0000
Seen: 7 times
Last updated: Nov 12 '22