Skip to content

Commit

Permalink
[PATCH] feat: expose fastify handle to user-space
Browse files Browse the repository at this point in the history
electrode-server is tightly coupled to fastify. some users may need fastify for testing or plugin development purposes, otherwise, they have to bring their own fastify installation, which competes with electrode-server.
  • Loading branch information
cdaringe authored Jan 18, 2024
1 parent a74b3da commit aefe7dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/electrode-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,3 +391,5 @@ export async function electrodeServer<TConfig = any>(
await emitEvent(ctx, "config-composed");
return await start(ctx);
}

export { default as fastify } from 'fastify';

0 comments on commit aefe7dd

Please sign in to comment.