quantum-flow 1.19.0 → 1.19.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.
- package/README.md +2 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -94,7 +94,7 @@ export class User {
|
|
|
94
94
|
@Controller({
|
|
95
95
|
prefix: 'api',
|
|
96
96
|
controllers: [UserController, SocketController],
|
|
97
|
-
|
|
97
|
+
middlewares: [...middlewares],
|
|
98
98
|
interceptor: (data, req, res) => data,
|
|
99
99
|
})
|
|
100
100
|
@Catch((error) => ({ status: 400, error }))
|
|
@@ -156,8 +156,6 @@ let dbConnection = null;
|
|
|
156
156
|
})
|
|
157
157
|
class RootController {}
|
|
158
158
|
const lambdaAdapter = new LambdaAdapter(Root);
|
|
159
|
-
lambdaAdapter.usePlugin(metricsPlugin);
|
|
160
|
-
|
|
161
159
|
export const handler = lambdaAdapter.handler;
|
|
162
160
|
```
|
|
163
161
|
|
|
@@ -411,7 +409,7 @@ export class MetricsController {...}
|
|
|
411
409
|
class App {}
|
|
412
410
|
|
|
413
411
|
const server = new HttpServer(App);
|
|
414
|
-
server.
|
|
412
|
+
server.usePligun(metricsPlugin)
|
|
415
413
|
server.listen().catch(console.error);
|
|
416
414
|
|
|
417
415
|
// Lambda setup
|