Skip to content

Commit

Permalink
Merge pull request #2912 from pablopaul/patch-1
Browse files Browse the repository at this point in the history
docs: add explicit provider registration of new services in prisma recipe
  • Loading branch information
kamilmysliwiec authored Jul 2, 2024
2 parents 2957c10 + 63a62f9 commit 992b92c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/recipes/prisma.md
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,8 @@ export class PostService {

Your `UserService` and `PostService` currently wrap the CRUD queries that are available in Prisma Client. In a real world application, the service would also be the place to add business logic to your application. For example, you could have a method called `updatePassword` inside the `UserService` that would be responsible for updating the password of a user.

Remember to register the new services in the app module.

##### Implement your REST API routes in the main app controller

Finally, you'll use the services you created in the previous sections to implement the different routes of your app. For the purpose of this guide, you'll put all your routes into the already existing `AppController` class.
Expand Down

0 comments on commit 992b92c

Please sign in to comment.