Skip to content

Refactor Controller to Service #30

@allenbakki

Description

@allenbakki

Refactor one controller so that it only handles HTTP requests/responses, while all business logic and database operations are moved to a dedicated service. This will serve as the template for other refactors.

controllers/
exampleController.js --> HTTP only

services/
exampleService.js --> Business logic + DB

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In review

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions