@ogma/platform-fastify
Version:
A plugin for the OgmaInterceptor to properly handle HTTP requests from Fastify
23 lines (16 loc) • 723 B
Markdown
# `@ogma/platform-fastify`
The `FastifyInterceptorParser` parser for the `OgmaInterceptor`. This plugin class parses Fastify request and response object to be able to successfully log the data about the request. For more information, check out [the @ogma/nestjs-module](../nestjs-module/README.md) documentation.
## Installation
Nothing special, standard `npm i @ogma/platform-fastify` or `yarn add @ogma/platform-fastify`
## Usage
This plugin is to be used in the `OgmaInterceptorOptions` portion of the `OgmaModule` during `forRoot` or `forRootAsync` registration. It can be used like so:
```ts
@Module(
OgmaModule.forRoot({
interceptor: {
http: FastifyParser
}
})
)
export class AppModule {}
```