Skip to content
Compare
Choose a tag to compare
@github-actions github-actions released this 20 Apr 10:38
· 110 commits to master since this release
230d68d

Minor Changes

  • #539 4d1456f Thanks @sukovanej! - Add support for standalone handlers to allow an extraction of the handler logic.

    const myEndpointHandler = RouterBuilder.handler(
      api,
      "myEndpoint",
      ({ query }) => Effect.succeed(query.country),
    );
    
    const app = pipe(
      RouterBuilder.make(api),
      RouterBuilder.handle(myEndpointHandler),
      RouterBuilder.build,
    );

Patch Changes