File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ It utilizes file-based routing, [zod](https://zod.dev/) input and output validat
10
10
11
11
## Features
12
12
13
- - ** Easy Setup: ** Quick and simple installation process .
13
+ - ** No Setup Required ** if the OpenAPI spec is not needed. Otherwise, just call ` setupEndpoints ` during app start-up .
14
14
- ** User-Friendly API:** Supports file-based routing and both basic and advanced per-endpoint configuration.
15
15
- ** Fully Typed:** Compile and run-time validation of input and output values using Zod schemas.
16
16
- ** HTTP Adapter agnostic:** Works with both Express and Fastify NestJS applications.
17
- - ** Stable:** Fully-tested for \* nix systems and produces regular NestJS Controllers under the hood.
17
+ - ** Stable:** Produces regular ** NestJS Controllers** under the hood.
18
18
19
19
## Getting Started
20
20
@@ -66,7 +66,7 @@ export default endpoint({
66
66
.object ({
67
67
id: z .number (),
68
68
name: z .string (),
69
- email: z .string (),
69
+ email: z .string (). email () ,
70
70
})
71
71
.nullable (),
72
72
inject: {
@@ -106,10 +106,11 @@ export default endpoint({
106
106
import { EndpointsModule } from ' nestjs-endpoints' ;
107
107
import create from ' ./create.endpoint' ;
108
108
import find from ' ./find.endpoint' ;
109
+ // ...
109
110
110
111
@EndpointsModule ({
111
112
endpoints: [create , find ],
112
- // ...
113
+ providers: [ DbService ],
113
114
})
114
115
export class UserModule {}
115
116
```
You can’t perform that action at this time.
0 commit comments