You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versioned_docs/version-3.x/recipe/nestjs.md
+18-16Lines changed: 18 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,42 +10,41 @@ This guide describes different ways to use ZenStack in a [NestJS](https://nestjs
10
10
11
11
ZenStack offers a standard ORM component that you can use in your NestJS application just like any other ORM. To get started, create a `DbService` by extending the `ZenStackClient` constructor:
@@ -126,11 +127,12 @@ export class AppController {
126
127
127
128
ZenStack also provides [API handlers](../service/api-handler/) that process CRUD requests automatically for you. To use it, create a catch-all route in your controller and forward the request to the API handler:
128
129
129
-
```ts title="app.controller.ts"
130
+
```ts title="src/app.controller.ts"
130
131
import { Controller, All, Inject, Param, Query, Req, Res } from'@nestjs/common';
0 commit comments