quantum-flow 1.1.4 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -61,7 +61,7 @@ class UserDto {
61
61
  @Catch((err) => ({ status: 500, err }))
62
62
  export class User {
63
63
  @Status(201)
64
- @PUT(':id')
64
+ @PUT(':id',[...middlewares])
65
65
  async createUser(
66
66
  @Body(UserDto) body: UserDto,
67
67
  @Query() query: any,
@@ -73,7 +73,7 @@ export class User {
73
73
  ) {
74
74
  }
75
75
 
76
- @USE()
76
+ @USE([...middlewares])
77
77
  async any(@Response() resp: any) {
78
78
  ...
79
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quantum-flow",
3
- "version": "1.1.4",
3
+ "version": "1.3.1",
4
4
  "description": "Decorator-based API framework",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",