Skip to content

Commit

Permalink
feat: Accept fastify factory options on constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyfarrell committed Jan 16, 2021
1 parent 03cd444 commit 58b56c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import fastifyStatic from 'fastify-static';
import fastifyHttpProxy from 'fastify-http-proxy';

export class FastifyIntegrationDaemon {
daemon = fastify();
constructor(fastifyOptions) {
this.daemon = fastify(fastifyOptions);
}

serveProxy({prefix, upstream, onResponse}) {
const replyOptions = onResponse ? {onResponse} : undefined;
Expand Down

0 comments on commit 58b56c1

Please sign in to comment.